home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 May / Macworld (1999-05).dmg / Shareware World / Utilities / Data & Time / Troi-File-Plug-in1.2.1 / File Example.fp3 (.txt) < prev    next >
FileMaker Pro Database  |  1999-03-10  |  312KB  |  2,970 lines

  1.  work makAll play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All 
  2. HBAM2016AUG95
  3. Pro 3.0
  4.  All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a goodCopyright 1984-1997 Claris Corporation
  5.  and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. All play and no work makes John a good boy. 
  6. HBAM3016AUG95@
  7. aboutI
  8. about
  9. filespec'sI
  10. defaultq
  11. dialogK
  12. filespecK
  13. filespec'sI
  14. fullpath_
  15. oncep
  16. separatorp
  17. trfile-appendcontent
  18. trfile-contentsdialo
  19. trfile-copyfile
  20. trfile-createfile
  21. trfile-createfolder
  22. trfile-deletefile
  23. trfile-filespec_
  24. trfile-filespec
  25. fullpath_
  26. trfile-findfolder
  27. trfile-folderlist
  28. trfile-fullpath`
  29. trfile-fullpath
  30. filespec`
  31. trfile-getK
  32. trfile-get
  33. filespec
  34. dialogK
  35. trfile-getcontents
  36. trfile-getdatasize
  37. trfile-getdatecreate
  38. trfile-getdatemodifi
  39. trfile-getdatetimecr
  40. trfile-getdatetimemo
  41. files
  42. general
  43. zondag
  44. maandag
  45. dinsdag
  46. woensdag
  47.     donderdag
  48. vrijdag
  49. zaterdag
  50. januari
  51. februari
  52. maart
  53. april
  54. augustus
  55.     september
  56. oktober
  57. november
  58. december
  59. 1st Quarter
  60. 2nd Quarter
  61. 3rd Quarter
  62. 4th Quarter
  63. 3/10/99
  64.     CFILENAME
  65. FUNCTIONCATEGORY
  66. FUNCTIONDESCRIPTION
  67. FUNCTIONID
  68. File Specification
  69. File Manipulation
  70. Function Overview
  71. Read Me
  72. Function Details
  73. File Copy And Move
  74. Function Details (work)
  75. FMP 4.0 Bug warning
  76. Append To File
  77. Folder Manipulation
  78. Launch
  79. Multi Export
  80. Multi Image Import
  81. Multi Ex-/Import Explanation
  82. Multi Image Import Copy
  83. FolderList
  84. FolderList scripted
  85. Search
  86. Multi PDF Print
  87. FUNCTIONINVERSION
  88. FUNCTIONMAC
  89. FUNCTIONNAME
  90. FUNCTIONSYNTAX
  91. FUNCTIONWIN
  92. GCONTAINER
  93. G    GDEMOFILE
  94. GDESTEXPORTFSSPEC
  95. GDESTFILESPEC
  96. GERRORCODE
  97. GEXPORTFSSPEC
  98. GFOLDERLIST
  99. GFOLDERLISTCOMMAND
  100. GFOLDERLISTSWITCHES
  101. GFOLDERSPEC
  102. OTCHES COPY
  103. GFOLDERSPEC
  104. OFILE
  105. GTHEFILESIZE
  106. GTHEFILESPEC
  107. GTHEFILETYPE
  108. GTHERESSIZE
  109. GTHETIMECREATED
  110. GTHETIMEMODIFIED
  111. GUSERINPUT
  112. GVERSION
  113. GXPLATFORMRETURN
  114. RANDOMNR
  115. textB
  116. gNumberB
  117. gVersionB
  118. |("TrFile-Version"
  119. TrFile-Version
  120. gTheFile
  121. gTheFileSpecB
  122. gTheFileSizeB
  123. gTheDataSizeB
  124. gTheDateCreatedB
  125. gTheDateModifiedB
  126. gTheCreatorB
  127. gTheFileTypeB
  128. gTheTimeCreatedB
  129. gTheTimeModifiedB
  130. gTheResSizeB
  131. gTheDateTimeCreatedB
  132. gTheDateTimeModifiedB
  133. gErrorCodeB
  134. A    cFileNameB
  135.  3) + 1 
  136.  A    gDemoFileB
  137. "A    gFullPathB
  138. gUserInputB
  139. FunctionNameB
  140. FunctionMacB
  141. FunctionWinB
  142. FunctionDescriptionB
  143. FunctionSyntaxB
  144. FunctionIDB
  145. FunctionCategoryB
  146. RandomNrB
  147. gTextB
  148. gDestFileSpecB
  149. FunctionInVersionB
  150. gXplatformReturnB
  151. gExportFSSpecB
  152. You can rotate the text by pushing the button 
  153. Rotate 13
  154. Below is an example of text:
  155. Guvf grkg vf abj erirnyrq.
  156. Guvf vf n fvzcyr jnl gb cerirag ernqvat ol bguref. Qrpbqr ol ebgngvat ntnva!
  157. Frr jung unccraf jvgu guvf:
  158. nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM
  159. 1234567890!@#$%^&*()
  160. Guvf vf vzcyrzragrq ol Gebv Nhgbzngvfrevat 
  161.  1997, 1998
  162. $$-1^
  163. $$-50eoPort/Express Modem Read Me
  164. Software included in your package
  165. Your package includes all software for use with the following configurations:
  166. GeoPort Telecom Adapter and one of the following Macintosh models:
  167.  Performa 6360 and all PowerPC processor-based Macintosh and Performa models, except Power Macintosh and Performa 5200, 5300, 6200, 6300 series
  168. GeoPort Telecom Adapter II and one of the following Macintosh models:
  169.  Performa 6360 and all PowerPC processor-based Macintosh 
  170. P#:-1:2:GeoPort/Express Modem Read MeS
  171. 10-06-98T
  172. 10-06-98U
  173. ttxtV
  174. TEXTY
  175. 15:22:20Z
  176. 15:22:20[
  177. 1998-06-10 15:22:20]
  178. 1998-06-10 15:22:20
  179.  Peter peters. Al 
  180. HBAM2016AUG95
  181. Pro 3.0
  182.  All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters.Co
  183. pyright 1984-1997 Claris Corporation
  184.  All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters
  185. . All by himself Peter peters. All by himself Peter peters.  All by him 
  186. HBAM3016AUG95@
  187. pan unexpected TCP/IP error (
  188. AppleTalk is not enabled ( TCP/IP couldn't be initialized (:the manually set TCP/IP address is configured improperly (Jth
  189. e TCP/IP address is already in use or an address could not be obtained (
  190. ; This file is created and used by FileMaker Pro for TCP/IP access.
  191. ; It should contain one IP address or host name per line.
  192. ; Lines starting with a semicolon are ignored.
  193. FileMaker Hosts
  194. Local Hosts
  195. Specify Host...:FileMaker host name is limited to 32 
  196. 1st Quarter
  197. 2nd Quarter
  198. 3rd Quarter
  199. 4th Quarte
  200.     Helvetica
  201. Geneva
  202. Pro 3.0 - 4.0F!
  203. zondag
  204. maandag
  205. dinsdag
  206. woensdag
  207.     donderdag
  208. vrijdag
  209. zaterdag
  210. januari
  211. februari
  212. maart
  213. april
  214. augustus
  215.     september
  216. oktober
  217. november
  218. december
  219. 1st Quarter
  220. 2nd Quarter
  221. 3rd Quarter
  222. 4th Quarter
  223. 12/7/97
  224. textB
  225. A    Layout #1
  226. A    Layout #1B
  227.     Helvetica
  228. Geneva
  229. C+This file was created by the 
  230. Troi plug-in!D
  231. Close File
  232.     Helvetica
  233. Geneva
  234. 3A*test1234test1234test
  235. test1234test1234test
  236. files
  237. folders
  238. apple
  239. Internal:Apple Extras:Apple LaserWriter Software:
  240. Internal:Apple Extras:Apple Video Player
  241. Internal:Apple Extras:AppleScript:
  242. Internal:Apple Extras:Register with Apple
  243. Internal:Applications:Apple Video Player
  244. Internal:Applications:Apple Video Player Guide
  245. Internal:Applications:AppleCD Audio Player
  246. Internal:Applications:AppleCD Audio Player Guide
  247. Internal:System Utils:Apple Error Codes '98
  248. Internal:Apple Extras:Docs:Telecom Documents:Apple Telecom Upgrade Manual
  249. Internal:Applications:Retrcations:Retr
  250. Searching....Example.fp3
  251. files
  252. exactnameder:
  253. KES:1-Totale Backup set 2:System Folder:System Extensions (Disabled):
  254. filesrs
  255. files
  256. File SpecificationB
  257. Multi Export with Filenames
  258. NEW Technique example
  259. Multi image import 
  260. NEW Technique example
  261. To Folder List Demo
  262. Launch File or Application
  263. NEW in 1.2
  264. Search Files
  265. NEW in 1.2
  266. Multi PDF Printing
  267. NEW Technique example
  268. QuitY
  269. To File Spec Demo\\
  270.  1997, 1998, Troi Automatisering, Implementation & Design: Peter Baanen, Design & Testing: _
  271. To File Manipulation Demo`
  272. go to: www.troi.comd
  273. Jean Biverr
  274. File Manipulations
  275. NEW in 1.2x
  276. To Partial Get File Contentsz
  277. Function Overview{
  278. Read Me|
  279. FMP 4.0 Bug Warning}
  280. Order Via Web site
  281. To AppendToFile
  282. To File Copy/Move Demo
  283. To Folder Manipulation Demo3
  284. QuitY
  285. To File Spec Demo\\
  286.  1997, 1998, Troi Automatisering, Implementation & Design: Peter Baanen, Design & Testing: _
  287. To File Manipulation Demo`
  288. go to: www.troi.comd
  289. Jean Biverr
  290. File Manipulations
  291. NEW in 1.2x
  292. To Partial Get File Contentsz
  293. Function Overview{
  294. Read Me|
  295. FMP 4.0 Bug Warning}
  296. Order Via Web site
  297. To AppendToFile
  298. To File Copy/Move Demo
  299. To Folder Manipulation Demo
  300. File ManipulationB
  301. the Filef
  302.  Creatorh     FileType
  303. DateTimeCreated
  304. DateTimeModified
  305. Clear
  306. File Manipulations
  307. Get File Contents
  308. Get Specs & Contents
  309. Filtering files
  310. Partial Get File Contents
  311. theFileSpec
  312. Size on disk
  313. Creation
  314. Modification
  315. _    Data Size
  316. Resource Size
  317. bytes
  318. bytes
  319. j     Mac only
  320. To Menu
  321. I'This file will be 
  322. created:
  323. A FMP3 fileW
  324. theFileSpec|
  325. FileName
  326. File Manipulation
  327. To Menu
  328. File Creation
  329. File Deletion
  330. Function OverviewB
  331. |("TrFile-GetFileCreator" 
  332. TrFile-GetFileCreator
  333. |("TrFile-GetFileType"
  334. TrFile-GetFileType
  335. |("TrFile-GetDateCreated"
  336. TrFile-GetDateCreated
  337. |("TrFile-GetTimeCreated"
  338. TrFile-GetTimeCreated
  339. |("TrFile-GetDateTimeCreated"
  340. TrFile-GetDateTimeCreated
  341. |("TrFile-GetDateModified"
  342. TrFile-GetDateModified
  343. |("TrFile-GetTimeModified"
  344. TrFile-GetTimeModified
  345. |("TrFile-GetDateTimeModified"
  346. TrFile-GetDateTimeModified
  347. Cancel
  348. You pressed cancel.
  349. When you cancel a result "$$-1" is returned. In your scripts you should test for this result.
  350. ateTimeModified"
  351. TrFile-GetDateTimeModified
  352. TrFile-GetContents
  353. OK         
  354. pRF        FNDR dw 
  355. Cancel631000
  356.   1DC0 Apple Guide  
  357.          WORF        INIT dw dataThe Desktop Folder is found. Now we append the name of a file, "demofile.txt" and this is used to create a new file  on the desktop.F\
  358. |("TrFile-SetDefaultCreator"
  359.  "ttxt")
  360. TrFile-SetDefaultCreator
  361. ttxt|GV
  362. |("TrFile-SetDefaultType"
  363.  "TEXT")
  364. TrFile-SetDefaultType
  365. TEXT|H9
  366.  & "demofile.txt"
  367. demofile.txt
  368. |("TrFile-CreateFile"
  369. TrFile-CreateFile
  370. K$file was created ok. (errorcode = 0)L
  371. OK         
  372. pRF        FNDR dw 
  373. Cancel631000
  374.   1DC0 Apple Guide  
  375.          WORF        INIT dw dataThe (empty) file "demofile.txt" was created on the desktop.M
  376. OK         
  377. pRF        FNDR dw 
  378. Cancel631000
  379.   1DC0 Apple Guide  
  380.          WORF        INIT dw dataThe (empty) file "demofile.txt" could not be created on the desktop.
  381. Check if it already exists.
  382. I#Troi File Plug-in Function OverviewQ
  383. To MenuW
  384. Function Overview
  385. Print`
  386. N.A. = Not Applicableb
  387.  1997,1998 Troi Automatiseringe%click a function name to view detailsi
  388. Category
  389. Read MeB
  390. Function DetailsB
  391.    Dialog Plug-in will display a dialog box, in
  392. s" folder. Windows users find the plug-ins in the "SYSTEM" subdirectory in the FileMaker Pro 4.0 directory. This bug is fixed in version 4.0v2 and higher.
  393. What Troi File Plug-in can do for you: 
  394. File Manipulation 
  395. This group of functions makes it possible to save the contents of a (text)field or global to a file. You may calculate a path name or let the user indicate a location on your disks through a Put (Save as...) dialog box.  The reverse is also possible: have the user select a file 
  396. and read it into a field. Additional functions let you query detailed information of a file: the size on disk, creation and modification dates etc. Other manipulations include creation, deletion, copying and moving of files, and the creation of folders.
  397. __________________________________________________________________
  398. Who wrote it?
  399. Troi File Plug-in was designed and implemented by Peter Baanen of Troi Automatisering <peter@troi.nl>. Troi FM Plug-in was designed and tested by Jean Biver of
  400.  Atelier Informatique <biver@compuserve.com>. Thanks Jean!
  401. You can also visit the Troi web site at: <http://www.troi.com/> for additional information.
  402. Troi may also be reached by postal mail at:
  403. Troi Automatisering
  404. Vuurlaan 18
  405. 2408 NB  Alphen a/d Rijn 
  406. The Netherlands
  407. Fax: +31-172-470539
  408. Where can I get the latest version and more information?
  409. The latest versions of our software are available for downloading at our web site: <http://www.troi.com/>
  410. Here you will also find late breaking i
  411. nformation, company information, FileMaker tips and more. Our software will also be posted (with 
  412.  a week delay) to info-mac (and its mirrors). Go to: <http://www.pht.com/info-mac> or <http://hyperarchive.lcs.mit.edu/HyperArchive.html>.
  413. System Requirements
  414. This software should be able to run on any machine that is able to run FileMaker Pro 4.0. Of course you need a copy of FileMaker Pro, this should be a version 4.0v1 or later.  This may be the US version or any other localization.
  415. _____
  416. _____________________________________________________________
  417. Troi File Plug-in is a commerial product
  418. You can try-before-you-buy. This means that you are free and invited to test the plug-in 30 days before you pay. You may also make copies of the original and complete package (including this Read Me file) and distribute it to customers, friends etc. However, you may not distribute a modified or licenced version.
  419. Use Troi File Plug-in at your own risk:
  420. Although Troi File Plug-in was teste
  421. d carefully, we can not be responsible for any damages resulting from using this software. Also please try it out on a test database. Your system may be using an extension (unknown to us) that interferes with the proper functioning of Troi File Plug-in.
  422. We like to hear feedback on the benefits and shortcomings of the plug-in. Please include the platform and operating system in your suggestions and comments.
  423. What are the costs?
  424. Troi Dialog plug-in, Troi File plug-in and Troi Coding plug-in
  425.  can be purchased separate or at a discount in a bundle of 3 plug-ins. This is the pricing:
  426.                                            dialog    file       coding     3 FM plug-in
  427.                                            plug-in   plug-in    plug-in    bundle 
  428. 1 Single user license:                     $  20     $  20      $  20      $  40    
  429. 2 or more single user licenses (per user): $  15     $  15      $  15      $  30    
  430. Site license:                              $ 200     $ 200      $ 
  431. 200      $ 400
  432. World-wide license:                        $ 400     $ 400      $ 400      $ 900
  433. Developer distribution license:            $ 170     $ 170      $ 170      $ 375
  434. A Site License covers all locations for your organization within a 160 kilometer radius of your site (100 miles). One big advantage of a Site License is that you do not need to keep track of how many people at your site are using the software.  A World-Wide License covers all locations for your organization on the 
  435. planet earth.
  436. All Troi  Plug-in are available for Macintosh and Windows. When ordering please indicate for which platform you are ordering.
  437. Special licences for developers of FileMaker Pro solutions are available. Also sub-licencing is possible. Please contact Troi for information about this. At this moment the plug-in does not work with the FileMaker Pro SDK version 3.0. However it works with the 4.0 Developer edition version.
  438. How to pay?
  439. Paying for Troi Plug-ins is simple. There are 3
  440.  ways to pay:
  441. 1) Pay via Kagi with the enclosed Register program
  442. 2) Pay via Kagi Online at <http://order.kagi.com/?5i>
  443. 3) Pay Troi Automatisering directly (only for users in the Netherlands)
  444. 1) Pay Kagi with the enclosed Register program
  445. Kagi is a trustworthy payment service which handles payment for a lot of users and software authors . As of end of Nov 1997 Kagi already processed 338505 payments from 7000 authors.
  446. To pay open the Register program that accompanies Troi File Plug-in. En
  447. ter your name, your email address, and the number of single user licenses you desire for each program you wish to purchase (or Site or World-Wide licenses). Save or Copy or Print the data from the Register program and send the data and payment to Kagi. More specifics on the Register program to follow. Kagi handles my payment processing.
  448. If paying with Credit Card or First Virtual,  you can email or fax the data to Kagi. Their email address is sales@kagi.com and their fax number is +1 510 
  449. 652-6589. You can either Copy the data from Register and paste into the body of an email message or you can Save the data to a file and you can attach that file to an email message. There is no need to compress the data file, it's already pretty small. If you have a fax modem, just Print the data to the Kagi fax number. 
  450. Payments sent via email are processed within 3 to 4 days. You will receive an email acknowledgment when it is processed. Payments sent via fax take up to 10 days and if y
  451. ou provide a correct internet email address you will receive an email acknowledgment. 
  452. If you are paying with Cash or USD Check you should print the data using the Register application and send it to the address shown on the form, which is: 
  453. 1442-A Walnut Street #392-5I
  454. Berkeley, California 94709-1405
  455. You can pay with a wide variety of cash from different countries but at present if you pay via check, it must be a check drawn in US Dollars. Kagi cannot accept checks in other cu
  456. rrencies, the conversion rate for non-USD checks is around USD 15 per check and that is just not practical.
  457. If you have a purchasing department, you can enter all the data into the Register program and then select Invoice as your payment method. Print three copies of the form and send it to your accounts payable people. You might want to highlight the line that mentions that they must include a copy of the form with their payment.  Kagi can not invoice your company, you need to act on my 
  458. behalf and generate the invoice and handle all the paperwork on your end. 
  459. Please do not fax or email payment forms that indicate Cash, Check or Invoice as the payment method. As far as we know, there is still no technology to transfer physical objects via fax or email and without the payment, the form cannot be processed.
  460. Payments sent via postal mail take time to reach Kagi and then up to 10 days for processing. Again, if you include a correct email address, you will hear from Kagi whe
  461. n the form is processed.
  462. 2) Pay via Kagi Online 
  463. See under 1) for a description of what Kagi payment service is.
  464. Kagi has a web page where you can pay via Credit Card. Point your web browser at <http://order.kagi.com/?5i> Fill in the form and follow the instructions.
  465. 3) Pay Troi Automatisering directly 
  466. (only for users in The Netherlands)
  467. Please use option 1 or 2 (Pay Kagi) if you live outside the Netherlands.
  468. But if you live in The Netherlands you can pay as follows:
  469. Troi Dialog plug-
  470. in, Troi File plug-in and Troi Coding plug-in can be purchased separate or at a discount in a bundle of 3 plug-ins. This is the pricing:
  471.                                            dialog    file       coding     3 FM plug-in
  472.                                            plug-in   plug-in    plug-in    bundle 
  473. 1 Single user license:                     fl. 40       fl. 40        fl. 40           fl.  80    
  474. 2 or more single user licenses (per user): fl. 30       fl. 30        fl. 30           fl.  60        
  475. Site license:   
  476.                            fl.400       fl.400        fl.200           fl. 800
  477. World-wide license:                        fl.800       fl.800        fl.800           fl.1800
  478. Developer distribution license:            fl.340       fl.340        fl.340           fl. 750
  479. Please pay the appropriate amount to:
  480. Bank Name: Postbank NV, Amsterdam
  481. Postgiro Account number: 72.29.209
  482. Troi Automatisering
  483. Vuurlaan 18
  484. 2408 NB  Alphen a/d Rijn 
  485. The Netherlands
  486. To indicate for which software you are paying, add a remark like this:
  487. Troi F
  488. ile Plug-in Macintosh x number of copies
  489.  and/or
  490. Troi File Plug-in Windows x number of copies
  491. Please e-mail your payment details as well.
  492. Protection and Unlocking the application
  493. Troi File Plug-in  has a protection scheme. After you pay Troi Automatisering will tell you how to indicate to Troi File Plug-in that you have paid the licence fee.
  494. If you do not have an e-mail address, please enter your complete postal address and remember, we do not know what country you live in so please e
  495. nter that into the postal address also. 
  496. After you've supplied the payment data the following is changed:
  497. - the 
  498. unlicenced
  499.  warning is replaced by your name.
  500. - the flash screen that shows at the first time the plug-in is used is removed. Of course also the delay (which is longer after 30 days of use) will be removed.
  501. __________________________________________________________________
  502. Bug reports and Wish list
  503. If you find a bug, please report this by e-mail: peter@troi.nl. If you have any 
  504. comments or other functions that you think need to be added, please notify us! We have a lot of ideas for this plug-in, so be sure to check our web site for new plug-ins and improved versions.
  505. And please pay for software you keep using, so that the wish list gets reality.
  506. Versions
  507. 1.2.1 (10-Jan-99)
  508. - added a built-in 'register function' for developers of runtimes.
  509. - added the multi-import sample.
  510. - fixed a bug with CreateFile on Windows. If the file exists the CreateFile now returns erro
  511. r code $$-48 (Duplicate FileName). In this situation also on Mac $$-48 is returned (was $$-1)
  512. - added more example files (multi-image import multi HTML export)
  513. 1.2 (03-Jul-98)
  514. - clearer errorcodes returned by TrFile-Launch function.
  515. - added TrFile-FolderList function
  516. - added TrFile-Launch function
  517. - removed the startup flash screen. Now a flash screen is shown the first time the plug-in functionality is used. 
  518. This flash screen is removed after payment of the licence fee.
  519. - added example 
  520. demonstrating Multiple import and export.
  521. - added example demonstrating Multiple creation using PDFWriter.
  522. - improved handling of FSSpec to FullPath.
  523. 1.1 (29-4-98)
  524. - added create folder
  525. - added find folder
  526. - added file copy and move 
  527. - file copy now returns an errorcode if destination file exists
  528. - added partial read and appendToFile
  529. - added Multiple file export demonstration
  530. - split into 3 separate plugins: Troi Dialog Plug-in, Troi Coding Plug-in and Troi File Plug-in
  531. 1.0 (29-1-98) Fir`
  532. st release
  533. - fixed a bug on 68k machines which disposed of a pointer improperly.
  534. Thanks for supporting our software,
  535. Peter Baanen
  536.  mirrors). Go to: <http://www.pht.com/info-mac> or <http://hyperarchive.lcs.mit.edu/HyperArchive.html>.
  537. System Requirements
  538. This software should be able to run on any machine that is able to run FileMaker Pro 4.0. Of course you need a copy of FileMaker Pro, this should be a version 4.0v1 or later.  This may be the US version or any other localizati
  539. e them.
  540.    You may want to install other plug-ins before proceeding. Then (re)start FileMaker Pro. The Troi 
  541.    File Plug-in will display a dialog box, indicating that it is loading and showing the registration 
  542.    status. You can now open the file "File Example.fp3" to see how to use the plug-in's functions. 
  543.    There is also a Function overview in this file.
  544.  UPGRADING FROM TROI 
  545. FM PLUG-IN 1.0
  546.    Current licenced users of our Troi FM Plug-in 1.0 can upgrade for free to the 3 replacing plug-ins: 
  547.    Troi Dialog Plug-in 1.2.1, Troi File Plug-in 1.2.1 and Troi Coding Plug-in 1.2. These 3 new plug-ins will
  548.    recognize the payment data of Troi FM Plug-in 1.0.
  549.    -For Macintosh: remove the "Troi FM Plug-in" file from the "FileMaker Extensions" folder. Put the 
  550.    file "Troi File Plug-in" from the folder "MacOS Plug-in" into the "FileMaker Extensions" 
  551.    folder in th
  552. To MenuE
  553. PrintF
  554. Troi File Plug-in Read Me
  555. To MenuE
  556. PrintF
  557. Troi File Plug-in Read Me
  558. To MenuE
  559. PrintF
  560. Troi File Plug-in Read Me
  561. r Pro 4 folder. If you have installed previous versions of this plug-in, you must 
  562.    remove them.
  563.    -For Windows: remove the "Troi FM Plug-in" file from the "SYSTEM" subdirectory in the 
  564.    FileMaker Pro 4.0 directory. Put the file "trfile.fmx" from the directory "Windows Plug-in" into
  565.    the "SYSTEM" subdirectory in the FileMaker Pro 4.0 directory . If you have installed previous 
  566.    versions of this plug-in, you must remove them.
  567.    You may want to install other plug-ins before proce
  568. eding. Then (re)start FileMaker Pro. The Troi 
  569.    File Plug-in will display a dialog box, indicating that it is loading and showing the registration 
  570.    status. 
  571.    IMPORTANT:  
  572.    - Please make sure you remove "Troi FM Plug-in" file in order to be able to use the new features.  
  573.    - Also please change your test script for the presence of the plug-in.  
  574.    Instead of the following test:
  575.             If [ Left(External("Troi-Version"; "") ; 15 ) <> "Troi FM Plug-in"]
  576.                  Beep
  577. Namee
  578. Parametersf
  579. Descriptiong
  580. Wini!
  581.  1997, 1998, Troi Automatiseringl
  582. Added in
  583. Version
  584. I Troi File Plug-in Function SpecsQ
  585. OverviewW
  586. FunctionZ
  587. Print`
  588. N.A. = Not Applicable
  589. File Copy And MoveB
  590. Thanks for helping out!Q
  591. to menu`
  592. go to: www.troi.com
  593. %AnJean Biver
  594. Atelier Informatique
  595. 33, rue Mathias Cungs
  596. L-3446 Dudelange
  597. Luxembourg
  598. mailto:biver@compuserve.com
  599. f/Troi really appreciates the inspiring ideas of:
  600. source FileSpec
  601. File Copy and Move
  602. q    File Copy
  603. r    File Move
  604. destination FileSpec
  605. result
  606. wA>Warning: 
  607. This is a powerful feature. Be careful what you do!
  608. x<returns 0 if ok
  609. returns $$+errorcode if something went wrong
  610. To Menu
  611. Multi Export with Filenames
  612. FMP 4.0 Bug warningB
  613. TrFile-Launchf
  614. (of a folder (directory).
  615. Parameter 1: switches: this can be one or more of the following:
  616. files        list all files in this folder
  617. folders        list all folders (subdirectories) in this folder
  618. showaliases    list all aliases (shortcuts) in this folder
  619. showshortcuts    list all aliases (shortcuts) in this folder (you can use the one you like)
  620. showinvisibles    list all invisible files and folders
  621. showpointdirs    windows: list also the directories . (current dir) and .. (parent dir)
  622. showpointdB
  623. irs    mac: this switch is ignored
  624. Parameter 2: FileSpec : the path to the folder to list.
  625. Example: External("TrFile-ListFolder";  "files &folders |Mac HD:")
  626. See also the functions "TrFile-Save FileSpec Dialog" to get a FileSpec for a folder.
  627.     O&     Og
  628. switches | FileSpecj
  629. Filesn
  630. 565,037997236959u
  631. TrFile-Launchf
  632. I Troi File Plug-in Function SpecsQ
  633. OverviewW
  634. FunctionZ
  635. Print`
  636. N.A. = Not Applicable
  637. Namee
  638. Parametersf
  639. Descriptiong
  640. Wini!
  641.  1997, 1998, Troi Automatiseringl
  642. Categoryn
  643. Function
  644. InVersionx
  645. FunctionID
  646. Append To FileB
  647. To MenuE
  648. PrintF
  649. FM Plug-in Bug warning
  650. Warning: 
  651. There is a problem in Filemaker 4.0v1. Please make sure that all plug-ins are enabled in the preferences. (Under Edit/ Preferences/ Application/ Plug-ins). Remove plug-ins you don't use from the "FileMaker Extensions" (Mac) folder or 
  652. SYSTEM
  653.  directory (Win).
  654. Folder ManipulationB
  655. theFileSpec|
  656. FileName
  657. AppendToFile
  658. To Menu
  659. Specify The File
  660. Append a line
  661. gErrorCode
  662. LaunchB
  663. theFileSpec|
  664. Folder Name
  665. Folder Manipulation
  666. To Menu
  667. Folder Creation
  668. Find Folder 
  669. error code
  670. PRFolders is a Macintosh term. On Windows the term (sub)directory 
  671. is used for this.
  672. theFileSpec|
  673. Folder Name
  674. Folder Manipulation
  675. To Menu
  676. Folder Creation
  677. Find Folder 
  678. error code
  679. PQFolders is a Macintosh term. On Windows the term (sub)directory 
  680. is usedfor this.
  681. Imports the file specified by the FileSpec into a specified FileMaker text field. Carriage returns are converted from ASCII13 to ASCII11. Files longer than 64000 bytes are cut after the 64000th character. No provision is made for converting Unix or DOS line-breaks. Formatting is not preserved.
  682. Set Field[MyTextField, External(Troi-getContents, "HD Mac:Text files:My Letter")] returns the contents of the file.
  683. See also the function "TrFile-Get FileSpec Dialog" to get a FileSpec.
  684. The parameterB9 adds a prompt to the GetFile Dialog. It may be omitted.
  685. promptj
  686. Filesn
  687. 4,88302856911115u
  688. TrFile-GetFileSizef
  689. Returns the file size for the file specified by the FileSpec. The size indicates the number of sectors used by the file on disk, not the actual file size.
  690. See also the function "TrFile-Get FileSpec Dialog" to get a FileSpec.
  691. FileSpecj
  692. Filesn
  693. 991,495587393407u
  694. TrFile-GetDataSizef
  695. To be able to specify a file the plug-in uses a FileSpec, which is short for File Specification. On Windows this is always a full path like: 
  696.      "C:\Data Files\Database\Test.Txt". 
  697. On Macintosh the file spec can be a full path or it can be a FSSpec: 
  698.      "Mac HD:Data Files:Database:testfile"
  699.      ":volumeID:directoryID:fileName"
  700. The plug-in recognises the FSSpec by the colon as the first character. 
  701. An example may be: ":-1:300:testfile". 
  702. On the Mac a volume name need not be unique, be B
  703. careful with that. 
  704. Filesn
  705. 931,353786462617u
  706. TrFile-ContentsDialogf
  707. }Returns the file type for the file specified by the FileSpec. The file type is a 4 character code used to designate the type of file. For example: FileMaker files have a file Type of 
  708.  and Applications have types of 
  709. This function is not available in Windows. Windows uses the .3 extension instead.
  710. See also the function "TrFile-Get FileSpec Dialog" to get a FileSpec.
  711. FileSpecj
  712. Filesn
  713. 738,120568328593u
  714. TrFile-GetFileCreatorf
  715. tReturns the file creator for the file specified by the FileSpec. The file creator is a 4 character code used to designate the application that created a file. For example: FileMaker creates files 
  716.  and Applications have creator equal to their file type.
  717. This function is not available in Windows.
  718. See also the function "TrFile-Get FileSpec Dialog" to get a FileSpec.
  719. FileSpecj
  720. Filesn
  721. 71,6187036929739u
  722. TrFile-GetDateCreatedf
  723. 7Returns the data size for the file specified by the FileSpec. The size indicates the actual number of bytes used by the data fork.
  724. In Windows this function returns the actual file size in bytes, since there are no resource forks in Windows.
  725. See also the function "TrFile-Get FileSpec Dialog" to get a FileSpec.
  726. FileSpecj
  727. Filesn
  728. 113,101148564881u
  729. TrFile-GetResForkSizef
  730. Returns the size of the resource fork for the file specified by the FileSpec. The size indicates the actual number of bytes used by the resource fork.
  731. This function is not available in Windows.
  732. See also the function "TrFile-Get FileSpec Dialog" to get a FileSpec.
  733. FileSpecj
  734. Filesn
  735. 69,1358200596347u
  736. TrFile-GetFileTypef
  737. Returns the creation date for the file specified by the FileSpec.
  738. See also the function "TrFile-Get FileSpec Dialog" to get a FileSpec.
  739. FileSpecj
  740. Filesn
  741. 442,203231827451u
  742. TrFile-GetTimeCreatedf
  743. Returns the creation time for the file specified by the FileSpec.
  744. See also the function "TrFile-Get FileSpec Dialog" to get a FileSpec.
  745. FileSpecj
  746. Filesn
  747. 19,0638215369842u
  748. TrFile-GetDateTimeCreatedf
  749. Returns the creation date and time for the file specified by the FileSpec.
  750. See also the function "TrFile-Get FileSpec Dialog" to get a FileSpec.
  751. FileSpecj
  752. Filesn
  753. 735,551177866548u
  754. TrFile-GetDateModifiedf
  755. Returns the modification date for the file specified by the FileSpec. The modification date is also displayed in the Finder or Explorer.
  756. See also the function "TrFile-Get FileSpec Dialog" to get a FileSpec.
  757. FileSpecj
  758. Filesn
  759. 592,39189866576u
  760. TrFile-GetDateCreatedf
  761. trfile-getfilecreato
  762. trfile-getfilesize
  763. trfile-getfiletype
  764. trfile-getresforksiz
  765. trfile-gettimecreate
  766. trfile-gettimemodifi
  767. trfile-launch
  768. trfile-movefile
  769. trfile-saveX
  770. trfile-save
  771. filespec
  772. dialogX
  773. trfile-search
  774. trfile-setcontents
  775. trfile-setdefaultcre
  776. trfile-setdefaultfil
  777. trfile-setdefaulttyp
  778. trfile-version
  779. troi-setp
  780. troi-set
  781. default
  782. separatorq
  783. troi-set
  784. separator
  785. oncep
  786. filetype1filetype2fi
  787. folderconstant
  788. nameX
  789. prompt
  790. prompt
  791. default
  792. nameX
  793. separator
  794. sourcel
  795. source
  796. filespec
  797. destination
  798. filespecl
  799. switchesr
  800. switches
  801. filespecr
  802. files
  803. general
  804. &File Manipulation: Full Path to FSSpec
  805. File Manip: Filtering Files
  806. File Manip: Copy a file
  807. TrFile-GetTimeModifiedf
  808. Returns the modification date for the file specified by the FileSpec. The modification date is also displayed in the Finder or Explorer.
  809. See also the function "TrFile-Get FileSpec Dialog" to get a FileSpec.i
  810. FileSpecj
  811. Filesn
  812. 592,39189866576u
  813. TrFile-GetTimeModifiedf
  814. 1the FileSpec. The modification date is also displayed in the Finder or Explorer.
  815. See also the function "TrFile-Get FileSpec Dialog" to get a FileSpec.i
  816. FileSpecj
  817. Filesn
  818. 592,39189866576u
  819. TrFile-GetTimeModifiedf
  820. 1 The modification date is also displayed in the Finder or Explorer.
  821. See also the function "TrFile-Get FileSpec Dialog" to get a FileSpec.i
  822. FileSpecj
  823. Filesn
  824. 592,39189866576u
  825. TrFile-GetTimeModifiedf
  826. 1o displayed in the Finder or Explorer.
  827. See also the function "TrFile-Get FileSpec Dialog" to get a FileSpec.i
  828. FileSpecj
  829. Filesn
  830. 592,39189866576u
  831. TrFile-GetTimeModifiedf
  832. Returns the modification time for the file specified by the FileSpec. The modification time is also displayed in the Finder or Explorer.
  833. See also the function "TrFile-Get FileSpec Dialog" to get a FileSpec.i
  834. FileSpecj
  835. Filesn
  836. 891,003929959146u
  837. TrFile-GetDateTimeModifiedf
  838. Returns the modification date and time for the file specified by the FileSpec. The modification date and time are also displayed in the Finder or Explorer.
  839. See also the function "TrFile-Get FileSpec Dialog" to get a FileSpec.i
  840. FileSpecj
  841. Filesn
  842. 508,366341473705u
  843. TrFile-Save FileSpec Dialogf
  844. [Presents the user with a standard save dialog and displays all files in a directory. The prompt will be displayed inside a PutFile dialog to inform the user what to do. A default file name may be indicated. The function returns an FileSpec which can be used to create and write to the file.
  845. If the user cancels an error code of "$$-1" is returned.
  846. prompt|default_file_name
  847. Filesn
  848. 44,2296616007712u
  849. TrFile-CreateFilef
  850. Creates a new empty file in the location indicated by the FileSpec. This function requires no user intervention.
  851. An error code of $$-1 means the file already exists.
  852. See also the function "TrFile-Save FileSpec Dialog" to get a FileSpec for the file, "TrFile-SetContents" to set the contents of the file, "TrFile-SetDefaultCreator" and "TrFile-SetDefaultType" to set the file type and creator on Mac.
  853. FileSpecj
  854. Filesn
  855. 774,086341156664u
  856. TrFile-SetContentsf
  857. Sets the contents of an existing file indicated by the 
  858. SetDefaultFileSpec
  859.  function.
  860. An error code of $$-1 means that no file exists.
  861. See also the functions "TrFile-Save FileSpec Dialog" to get a FileSpec for the file, 
  862. SetDefaultFileSpec
  863.  to indicate the file to affect, 
  864. TrFile-CreateFile
  865.  to create a new empty file, "TrFile-SetDefaultCreator" and "TrFile-SetDefaultType" to set the file type and creator on Mac.
  866. FileSpecj
  867. Filesn
  868. 565,037997236959u
  869. TrFile-DeleteFilef
  870. ,Deletes the file indicated by the FileSpec. This function requires no user intervention.
  871. An error code of $$-1 means there is no file by that name.
  872. See also the function "TrFile-Get FileSpec Dialog" to get a FileSpec for the file, and 
  873. Troi-DoDialog
  874. Display Dialog
  875.  script step to warn the user.
  876. FileSpecj
  877. Filesn
  878. ,90326089454035u
  879. TrFile-SetDefaultFileSpecf
  880. Indicates a FileSpec (i.e. the file) to be used in succeeding functions where no FileSpec is indicated.
  881. See also the functions "TrFile-SetFileContents" and "TrFile-FileSpec To FullPath" to revert the path name.i
  882. FileSpecj
  883. Filesn
  884. 375,261820096179u
  885. TrFile-SetDefaultCreatorf
  886. Specifies the file creator to be used when creating a new file. This creator will be used for subsequent calls to "TrFile-CreateFile".
  887. See also the function "TrFile-CreateFile" to create a new empty file.i
  888. FileSpecj
  889. Filesn
  890. 217,251061563031u
  891. TrFile-SetDefaultTypef
  892. Sets the file type to be displayed when browsing GetFile dialogs. If no parameter is specified, the GetFile dialog in the new function will display all files. Individual file type must contain 4 characters and are case sensitive. Add more file types without separators.
  893. Also sets the default file type when creating new files. 
  894. Example: Set Field[gButtonNr, External(TrFile-SetDefaultType, "TEXTttro") to display SimpleText and Teach Text read-only files.
  895. See also the functions 
  896. TrFile-Get FilB)eSpec Dialog
  897.  and "TrFile-ContentsDialog"
  898. i&[FileType1FileType2FileType3FileType4]j
  899. Filesn
  900. 89,5969276733682u
  901. TrFile-FileSpec To FullPathf
  902. Changes the relative file path to the full path name displaying all folder names in the path.
  903. See also the function 
  904. TrFile-FullPath To FileSpec
  905.  to revert the path name.i
  906. FileSpecj
  907. Filesn
  908. 51,6646984273869u
  909. TrFile-FullPath To FileSpecf
  910. Changes the full name path to the standard Macintosh FSSpec.
  911. This is formatted as follows: ":volumeID:folderID:FileName". This is the preferred way on the Mac to specify a file.
  912. See also the function "TrFile-FileSpec To FullPath" to revert the path name.i
  913. FileSpecj
  914. Filesn
  915. 428,119778832476u
  916. TrFile-AppendContentsf
  917. Append to the contents of an existing file indicated by the 
  918. SetDefaultFileSpec
  919.  function.
  920. Parameter: text to be added to the default file.
  921. An error code of $$-1 means that no file exists.
  922. See also the functions "TrFile-Save FileSpec Dialog" to get a FileSpec for the file, 
  923. SetDefaultFileSpec
  924.  to indicate the file to affect, 
  925. TrFile-CreateFile
  926.  to create a new empty file, "TrFile-SetDefaultCreator" and "TrFile-SetDefaultType" to set the file type and creator on Mac.
  927. textj
  928. Filesn
  929. 565,037997236959u
  930. TrFile-CopyFilef
  931. Copies a file. 
  932. Parameters: source FileSpec : the path to the file to copy.
  933. destination FileSpec : the path to where to file must be copied to.
  934. See also the functions "TrFile-Save FileSpec Dialog" to get a FileSpec for a file, 
  935. SetDefaultFileSpec
  936.  to indicate the file to affect, 
  937. TrFile-CreateFile
  938.  to create a new empty file, "TrFile-SetDefaultCreator" and "TrFile-SetDefaultType" to set the file type and creator on Mac.
  939. i&source FileSpec | destination FileSpecj
  940. Filesn
  941. 565,037997236959u
  942. TrFile-MoveFilef
  943. Moves a file from one disklocation to another.
  944. Parameters: source FileSpec : the path to the file to copy.
  945. destination FileSpec : the path to where to file must be moved to.
  946. You can also use this function to rename a file.
  947. See also the functions "TrFile-Save FileSpec Dialog" to get a FileSpec for a file, 
  948. SetDefaultFileSpec
  949.  to indicate the file to affect, 
  950. TrFile-CreateFile
  951.  to create a new empty file, "TrFile-SetDefaultCreator" and "TrFile-SetDefaultType" to set the file type and creatorB
  952.  on Mac.
  953. i&source FileSpec | destination FileSpecj
  954. Filesn
  955. 565,037997236959u
  956. TrFile-CreateFolderf
  957. Creates a new (empty) folder (subdirectory).
  958. Parameters: FileSpec : the path to the folder to create.
  959. You can also use this function to rename a file.
  960. See also the functions "TrFile-Save FileSpec Dialog" to get a FileSpec for a folder 
  961. TrFile-CreateFile
  962.  to create a new empty file.
  963. FileSpecj
  964. Filesn
  965. 565,037997236959u
  966. TrFile-FindFolderf
  967. Finds special folders (subdirectories).
  968. Parameters: folderconstant : must be one of the following:
  969. desktop        = desktop folder
  970. system        = system folder
  971. trash        = trash folder on the desktop
  972. shutdown    = shutdown items folder in the system folder
  973. applemenu    = apple menu folder in the system folder
  974. controlpanels    = control panels folder in the system folder
  975. extensions    = extensions folder in the system folder
  976. preferences      = preferences folder in the system folder
  977. temporary    = hidden temporary foldBder on the startup disk
  978. root         = top folder on the startup disk
  979. returns: the Filespec of the folder.
  980. folderconstantj
  981. Filesn
  982. 565,037997236959u
  983. Troi-Set Separator Oncef
  984. Changes the default separator text to the given separator, for ONE Troi FM Plug-in function only. After the function has been called the separator will revert to the default separator.
  985. The separator text is used by the plug-in to split one parameter into multiple parts. At FileMaker startup the separator text defaults to "|". Use this function if you want to specify a parameter part which has the current separator in it. 
  986. Example usage: Set Field[gDontCare, External(Troi-Set Separator OnceB
  987. , "<->")] 
  988. i    separatorj
  989. Generaln
  990. 66,3373209844983u
  991. Troi-Set Default Separatorf
  992. Changes the default separator text to the given separator. The new separator will be used until FileMaker is quit or an other separator is specified.
  993. The separator text is used by the plug-in to split one parameter into multiple parts. At FileMaker startup the separator text defaults to "|". Use this function if you want to specify a parameter part which has the current separator in it. 
  994. Example usage: Set Field[gDontCare, External(Troi-Set Default Separator, "<->")] 
  995. Tip: specify a separaB(tor you know won't be in any parameters.
  996. i    separatorj
  997. Generaln
  998. ,78354403413065u
  999. TrFile-FolderListf
  1000. 3List the content of a folder (directory).
  1001. Parameters: switches: 
  1002. FileSpec : the path to the folder to list.
  1003. You can also use this function to rename a file.
  1004. See also the functions "TrFile-Save FileSpec Dialog" to get a FileSpec for a folder 
  1005. TrFile-CreateFile
  1006.  to create a new empty file.
  1007. switches | FileSpecj
  1008. Filesn
  1009. 565,037997236959u
  1010.     Helvetica
  1011. Geneva
  1012. Arial
  1013. Times New Roman
  1014. Monaco
  1015. Courier
  1016. Times
  1017. Futura
  1018. Courier New
  1019. Palatino
  1020.  A    Open file
  1021. ) = 2    
  1022. !A File Manipulation: Simple Dialog
  1023. Cancel
  1024. "You can import a TEXT file in one step using the function:
  1025. External ("TrFile-GetFileContents" ; "<prompt>")
  1026. The following dialog lets you select a file.BN
  1027. |("TrFile-ContentsDialog"
  1028. TrFile-ContentsDialog
  1029. "A&File Manipulation: FSSpec to Full Path
  1030. |("TrFile-FileSpec To FullPath"
  1031. TrFile-FileSpec To FullPath
  1032. #A&File Manipulation: Full Path to FSSpec
  1033. A File Manipulation: Use File Spec
  1034. Cancel
  1035. To get the File Specification of any file, use the function:
  1036. External ("TrFile-Get FileSpec Dialog" ; "<prompt>")C
  1037. |("TrFile-Get FileSpec Dialog"
  1038.  "Please select a file:")
  1039. TrFile-Get FileSpec Dialog
  1040. Please select a file:|
  1041. A File Manipulation: Create a file
  1042.     A4Important: ALWAYS check if the plug-in is available!B)Check if this is FileMaker 4.0 or higher.CQ
  1043.  1)) < 4    
  1044. Canceld
  1045. This file requires FileMaker 4.0 or higherE/Check if the correct Troi Plug-in is available.F
  1046. |("TrFile-Version"
  1047.  "") 
  1048.  17 ) <> "Troi File Plug-in"
  1049. TrFile-Version
  1050. Troi File Plug-in
  1051. ) = 1    
  1052. Canceld
  1053. Troi File Plug-in not found. Please put the Troi File Plug-in into the Extensions folder inside the FileMaker folder. 
  1054. Also enable all the plug-ins under the application preferences.
  1055. Canceld
  1056. Troi File Plug-in not found. Please put the Troi File Plug-in into the SYSTEM directory inside the FileMaker directory. 
  1057. Also enable all the plug-ins under the application preferences.
  1058.  = ""
  1059. Cancel
  1060. Specify a File first.D
  1061. |("TrFile-AppendContents" 
  1062.  "This part was written at: " & 
  1063. )) & 
  1064. TrFile-AppendContents
  1065. This part was written at:     
  1066.  <> 0
  1067. Cancel
  1068. An error occurred.
  1069. VA!File Manip: GoTo Append to a file
  1070. WA'TEST LOOP: File Manip: Append to a file
  1071. d puts this on the desktop
  1072. |("TrFile-CreateFile"
  1073. TrFile-CreateFile
  1074. H$File was created ok. (errorcode = 0)I
  1075. OK8C4 Title
  1076.                WORF
  1077. Cancel FMP3 dW data  #259072
  1078. 2 Title_fp3-             WORF    The empty file was created. Add lines to it by clicking on the "Append a line" button.J
  1079. OK8C4 Title
  1080.                WORF
  1081. Cancel FMP3 dW data  #259072
  1082. 2 Title_fp3-             WORF    The file could not be created, it might already exists. Be sure you want to append to this file.Kd
  1083. |("Troi-DoDialog"
  1084.  "You pressed cancel.")
  1085. Troi-DoDialog
  1086. You pressed cancel.|
  1087. File Manip: Append to a file
  1088. A+Specify a file and puts this on the desktop
  1089. A+Specify a file and puts this on the desktopB
  1090. |("TrFile-Save FileSpec Dialog"
  1091.  "Where should I create a file?|DemoFile.fp3")
  1092. TrFile-Save FileSpec Dialog
  1093. *Where should I create a file?|DemoFile.fp3|C;
  1094.  2 ) 
  1095.  "$$"
  1096. |("TrFile-SetDefaultFileSpec"
  1097. TrFile-SetDefaultFileSpec
  1098. |("TrFile-SetDefaultCreator"
  1099.  "FMP3")
  1100. TrFile-SetDefaultCreator
  1101. FMP3|FV
  1102. |("TrFile-SetDefaultType"
  1103.  "FMP3")
  1104. TrFile-SetDefaultType
  1105. FMP3|GJ
  1106. |("TrFile-CreateFile"
  1107. TrFile-CreateFile
  1108. I$File was created ok. (errorcode = 0)JK
  1109. |("TrFile-SetContents"
  1110. TrFile-SetContents
  1111. |("Troi-Set Default Separator"
  1112.  "|")
  1113. Troi-Set Default Separator
  1114. folder path
  1115. FolderList (using a script)
  1116. To Menu
  1117. s$switches, determining what is listed
  1118. uDthese 2 switches have the same effect:
  1119. show also aliases (shortcuts)
  1120. list all files
  1121. w%show also invisible files and folders
  1122. x)(Win only) show also directories . and ..
  1123. list all folders (directories)
  1124. command used
  1125. |A8terminology:
  1126. Mac    Windows
  1127. folder    directory
  1128. alias    shortcut
  1129. gFolderList
  1130. Get FolderList
  1131. To Field Version
  1132. 2) Click Here
  1133. #1) Type a full path
  1134.  + set switchesV
  1135. W$switches, determining what is listed|
  1136. folder path
  1137. FolderList (using a script)
  1138. To Menu
  1139. command used
  1140. http://www.troi.com/
  1141. Button 2
  1142. Clear File Spec
  1143. Cancel
  1144. Maximize
  1145. OKncel
  1146. PageDo you want to erase all file spec information?B+
  1147. ) = 2    
  1148. Quit button dialog
  1149. |("Troi-Version"
  1150.  "") 
  1151.  15 ) = "Troi FM Plug-in"
  1152. Troi-Version
  1153. Troi FM Plug-in
  1154. A    Full PathB
  1155. BooleanC
  1156. TEST Cond value (does not work)D
  1157. CategoriesE TEST Cond value2 (does not work)G
  1158. Folder List SwitchesI
  1159. Search Switches
  1160. |("TrFile-Get FileSpec Dialog"
  1161.  "Please select a file first:")
  1162. TrFile-Get FileSpec Dialog
  1163. Please select a file first:|B;
  1164.  2 ) 
  1165.  "$$"
  1166. OKsrc   #28
  1167.   2808 Web Compani
  1168. Cancel     WORF        FMXT dw da
  1169. a  #334062
  1170.   2866 Web Companion  First we read from the 5th character, with a length of 6 characters.D_
  1171. |("TrFile-GetContents"
  1172.  & "|5 |6 ")
  1173. TrFile-GetContents
  1174. |5 |6 
  1175. OKsrc   #28
  1176.   2808 Web Compani
  1177. Cancel     WORF        FMXT dw da
  1178. a  #334062
  1179.   2866 Web Companion  Now we read 30 characters  from the 10th character.F_
  1180. |("TrFile-GetContents"
  1181.  & "|10|30")
  1182. TrFile-GetContents
  1183. |10|30
  1184. OKsrc   #28
  1185.   2808 Web Compani
  1186. Cancel     WORF        FMXT dw da
  1187. a  #334062
  1188.   2866 Web Companion  Now we read all  from the 10th character.H]
  1189. |("TrFile-GetContents"
  1190.  & "|10|0")
  1191. TrFile-GetContents
  1192. |10|0
  1193. trfile-getfilecreato@
  1194. FPTHA
  1195. MSPC@
  1196. NAMEA
  1197. RPTH@
  1198. FPTH@
  1199. MSPC@
  1200. NAMEA
  1201. RPTH@
  1202. FPTH@
  1203. alisA
  1204. LISTA
  1205.  All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himself Peter peters. All by himselfby himselfeters. All by himselfeters. All by himselfimselfimselfby himselfby himselfby himselfelfimselfimselfs. All by himself
  1206. textB
  1207. gNumberB
  1208. gVersionB
  1209. |("TrFile-Version"
  1210. TrFile-Version
  1211. gTheFile
  1212. Troi File Plug-in
  1213. Troi File Plug-in is copyright 1998, 1999 of Troi Automatisering. All rights reserved (10-Jan-99).
  1214. Thank you for your interest in Troi File Plug-in. This FileMaker Pro 4 plug-in adds File Manipulation: save or read a field from or to a file. Other manipulations like deleting files, creating folders are also possible.
  1215. This cross-platform plug-in enhances Filemaker Pro 4. Finally you can do things you thought were still impossible to do with FileMaker 4. Now you can crea
  1216. te powerful databases by using this plug-in!
  1217. INSTALLATION INSTRUCTIONS 
  1218.  INSTALLING A (TROI) PLUG-IN FOR THE FIRST TIME.
  1219.    -For Macintosh: put the file "Troi File Plug-in" from the folder "MacOS Plug-in" into the
  1220.    "FileMaker Extensions" folder in the FileMaker Pro 4 folder. If you have installed previous 
  1221.    versions of this plug-in, you must remove them.
  1222.    -For Windows: put the file "troiplug.fmx" from the directory "Windows Plug-in" into the 
  1223.    "SYSTEM" subdirectory in the File
  1224. |("TrFile-Save FileSpec Dialog"
  1225.  "Where should I create a folder?|DemoFolder")
  1226. TrFile-Save FileSpec Dialog
  1227. *Where should I create a folder?|DemoFolder|C;
  1228.  2 ) 
  1229.  "$$"
  1230. |("TrFile-CreateFolder"
  1231. TrFile-CreateFolder
  1232. F$File was created ok. (errorcode = 0)G}
  1233. OK         
  1234. pRF        FNDR dw 
  1235. Cancel631000
  1236.   1DC0 Apple Guide  
  1237.          WORF        INIT dw dataThe folder was created.H
  1238. OK         
  1239. pRF        FNDR dw 
  1240. Cancel631000
  1241.   1DC0 Apple Guide  
  1242.          WORF        INIT dw dataThe folder was could not be created.
  1243. Check if it already exists.Id
  1244. |("Troi-DoDialog"
  1245.  "You pressed cancel.")
  1246. Troi-DoDialog
  1247. You pressed cancel.|
  1248. dA+Folder Manip: Create a File with FindFolder
  1249. ) = 1    
  1250. B8if on Mac add a colon ":" to the full path, if not thereC^
  1251.  1) <> ":"  
  1252. D8if on Win add a colon "\" to the full path, if not thereE^
  1253.  1) <> "\"  
  1254. To Multi export
  1255. Import Image Data
  1256. imp: Do Multi Image Import
  1257. A-Specify a folder and puts this on the desktop
  1258. OK         
  1259. pRF        FNDR dw 
  1260. Cancel631000
  1261.   1DC0 Apple Guide  
  1262.          WORF        INIT dw dataYou can find special folders (directories) by using the function: "TrFile-FindFolder". You can find the system folder, preferences folder, root folder and others. In this example we first find the Desktop Folder.CT
  1263. |("TrFile-FindFolder"
  1264.  "desktop")
  1265. TrFile-FindFolder
  1266. desktop|D;
  1267.  2 ) 
  1268.  "$$"
  1269. F        FNDR dw 
  1270. Cancel631000
  1271.   1DC0 Apple Guide  
  1272.          WORF        INIT dw dataThe (empty) file "demofile.txt" could not be created on the desktop.
  1273. Check if it already exists.
  1274. TEST: FindFolder
  1275. A(TEST for using all FindFolder functions.
  1276. e-FindFolder
  1277. system|
  1278. Check if it already exists.
  1279. To Menu
  1280. Check FILE plug-in
  1281.                  Show Message ["Troi FM Plug-in not found. .etc."]
  1282.                    Exit Script
  1283.             Endif
  1284.    Make the following test:
  1285.             If [ Left(External("TrFile-Version"; "") ; 17 ) <> "Troi File Plug-in"]
  1286.                  Beep
  1287.                  Show Message ["Troi File Plug-in not found. .etc."]
  1288.                    Exit Script
  1289.             Endif
  1290.    Add tests for the other 2 plug-ins as well (if you use the functionality):
  1291.              If [ Left(External("TrDl-Version"; ""
  1292. ) ; 19 ) <> "Troi Dialog Plug-in"]
  1293.                    ...
  1294.    and
  1295.             If [ Left(External("TrCo-Version"; "") ; 19 ) <> "Troi Coding Plug-in"]
  1296.                ...
  1297. Warning: 
  1298. There is a problem in FileMaker 4.0v1. Please make sure that all plug-ins that are in the folder "FileMaker Extensions" are enabled in the preferences (Under Edit/ Preferences/ Application/ Plug-ins). Make sure all plug-ins have a cross before their name. Remove plug-ins you don't use from the "FileMaker Extension
  1299. }`} }`} 
  1300. ~`~@~`~@
  1301. ~@~`~@~`
  1302. } }`} }`
  1303. }`} }`} 
  1304. ~`~@~`~@~`~@
  1305. ~@~`~@~`~@~`
  1306. } }`} }`
  1307. A(gNumber has the repetition number in it.B
  1308. are we ready?D%
  1309. H >= 
  1310. no: tab to the next repetitionF
  1311. increase the numberG'
  1312. H + 1
  1313. Imp: Locate import file
  1314. A"set no filtering of visible files:BN
  1315. |("TrFile-SetDefaultType"
  1316. TrFile-SetDefaultType
  1317. |("TrFile-Get FileSpec Dialog"
  1318.  "Find the import file")
  1319. TrFile-Get FileSpec Dialog
  1320. Find the import file|D]
  1321. |("TrFile-FileSpec To FullPath"
  1322. TrFile-FileSpec To FullPath
  1323. Imp: Locate first image
  1324. hK)[a`
  1325. VAt?z
  1326. aryZ~\v
  1327. Search a volume (disk) for a file or folder (directory).
  1328. Parameter 1: switches: this can be one or more of the following:
  1329. files        search for files
  1330. folders        search for folders
  1331. exactname        the filename must exactly match the searchname
  1332. showaliases    search also aliases (shortcuts)
  1333. showshortcuts    search also aliases (shortcuts) (you can use the one you like)
  1334. showinvisibles    search also invisible files and folders
  1335. Parameter 2: Volume : the name of the volume on which to search
  1336. Parameter 3: SeB
  1337. archName : the (part of the) filename or foldername you want to find
  1338. Example: TrFile-Search";  "files &folders |Mac HD: | test")
  1339. At the moment you can only search a complete volume.
  1340. switches | Volume | SearchNamej
  1341. Filesn
  1342. 565,037997236959u
  1343. Filesn
  1344. 565,037997236959u
  1345. gFolderSpecB
  1346. errorDescriptionCalcB
  1347.             
  1348.  = "0"
  1349.   "= No error."
  1350.      
  1351.             
  1352.  = "$$-35"
  1353.   "= No such volume (Wrong disk name or not mounted)."
  1354.      
  1355.             
  1356.  = "$$-43"
  1357.   "= File not found."
  1358.                  
  1359.             
  1360.  = "$$-50"
  1361.   "= Parameter error."
  1362.             
  1363.  = "$$-120"
  1364.  "= Directory not found."
  1365.    " ")
  1366. = No error.
  1367. $$-35
  1368. 2= No such volume (Wrong disk name or not mounted).
  1369. $$-43
  1370. = File not found.
  1371. $$-50
  1372. = Parameter error.
  1373. $$-120
  1374. = Directory not found.
  1375. gSearchSpecB
  1376. gSearchResultsB
  1377. gSearchCommandB
  1378. Ad"External(""TrFile-Search"";  """ & 
  1379.  " &") & 
  1380. " |" & 
  1381. " |" & 
  1382. Q & """)"
  1383. nal("TrFile-Search";  "
  1384. Function Details (work)B
  1385. orcode if something went wrong
  1386. To Menu
  1387. Multi Export with Filenames
  1388. st:|B;
  1389.  2 ) 
  1390.  "$$"
  1391. OKsrc   #28
  1392.   2808 Web Compani
  1393. Cancel     WORF        FMXT dw da
  1394. a  #334062
  1395.   2866 Web Companion  First we read from the 5th character, with a length of 6 characters.D_
  1396. |("TrFile-GetContents"
  1397.  & "|5 |6 ")
  1398. TrFile-GetContents
  1399. |5 |6 
  1400. OKsrc   #28
  1401.   2808 Web Compani
  1402. Cancel     WORF        FMXT dw da
  1403. a  #334062
  1404.   2866 Web Companion  Now we read 30 characters  from the 10th character.
  1405. |("TrFile-CreateFile"
  1406.  &"DeleteMe")
  1407. TrFile-CreateFile
  1408. DeleteMe
  1409. |("TrFile-FindFolder"
  1410.  "controlpanels")
  1411. TrFile-FindFolder
  1412. controlpanels|Ra
  1413. |("TrFile-CreateFile"
  1414.  &"DeleteMe")
  1415. TrFile-CreateFile
  1416. DeleteMe
  1417. |("TrFile-FindFolder"
  1418.  "extensions")
  1419. TrFile-FindFolder
  1420. extensions|Ua
  1421. |("TrFile-CreateFile"
  1422.  &"DeleteMe")
  1423. TrFile-CreateFile
  1424. DeleteMe
  1425. |("TrFile-FindFolder"
  1426.  "preferences")
  1427. TrFile-FindFolder
  1428. preferences|Xa
  1429. |("TrFile-CreateFile"
  1430.  &"DeleteMe")
  1431. TrFile-CreateFile
  1432. DeleteMe
  1433. |("TrFile-FindFolder"
  1434.  "temporary")
  1435. TrFile-FindFolder
  1436.     temporary|[a
  1437. |("TrFile-CreateFile"
  1438.  &"DeleteMe")
  1439. TrFile-CreateFile
  1440. DeleteMe
  1441. A+Specify a file and puts this on the desktopB!
  1442.  = ""
  1443. Cancel
  1444. Specify a File first.D
  1445. |("TrFile-AppendContents" 
  1446.  "This part was written at: " & 
  1447. )) & 
  1448. TrFile-AppendContents
  1449. This part was written at:     
  1450.  <> 0
  1451. Cancel
  1452. An error occurred.
  1453. YA%File Manip: Partial Get File Contents
  1454.  with FindFolder
  1455. Clear File Spec
  1456. ----- Documentation etc ------
  1457. Print Function Specs
  1458. Copy Parameters
  1459. : WWW: Goto web site: www.troi.com
  1460. WWW: Order via web site
  1461. Print this record
  1462. BeepBeep
  1463. TEST: FindFolder
  1464. D'TEST LOOP: File Manip: Append to a file
  1465. Select File
  1466. Alpha: Launch File
  1467. J!File Manip: Export with filenames
  1468. File Manip: Export
  1469. |("TrFile-CreateFile"
  1470.  &"DeleteMe")
  1471. TrFile-CreateFile
  1472. DeleteMe
  1473. TrFile-FindFolder
  1474. system|em|
  1475. TA$File Manip: Append to a file (start)
  1476. |("TrFile-Save FileSpec Dialog"
  1477.  "Where should I create a file?|Test.txt")
  1478. TrFile-Save FileSpec Dialog
  1479. &Where should I create a file?|Test.txt|B;
  1480.  2 ) 
  1481.  "$$"
  1482. |("TrFile-SetDefaultFileSpec"
  1483. TrFile-SetDefaultFileSpec
  1484. |("TrFile-SetDefaultCreator"
  1485.  "ttxt")
  1486. TrFile-SetDefaultCreator
  1487. ttxt|EV
  1488. |("TrFile-SetDefaultType"
  1489.  "TEXT")
  1490. TrFile-SetDefaultType
  1491. TEXT|
  1492. BeepBeep
  1493. |("TrFile-FindFolder"
  1494.  "root")
  1495. TrFile-FindFolder
  1496. root|^a
  1497. |("TrFile-CreateFile"
  1498.  &"DeleteMe")
  1499. TrFile-CreateFile
  1500. DeleteMe
  1501. Check for NO Troi FM plug-in
  1502. A4Important: ALWAYS check if the plug-in is available!B)Check if this is FileMaker 4.0 or higher.Cy
  1503. |("Troi-Version"
  1504.  "") 
  1505.  15 ) = "Troi FM Plug-in"
  1506. Troi-Version
  1507. Troi FM Plug-in
  1508. ) = 1    
  1509. |("TrFile-CreateFile"
  1510.  &"DeleteMe")
  1511. TrFile-CreateFile
  1512. DeleteMe
  1513. |("TrFile-FindFolder"
  1514.  "applemenu")
  1515. TrFile-FindFolder
  1516.     applemenu|
  1517. Launch File
  1518.  = ""
  1519. Cancel
  1520. Please select a file to launch first.CA
  1521. |("TrFile-Launch"
  1522. TrFile-Launch
  1523. Exp: Do Multi export
  1524. |("TrFile-DeleteFile"
  1525. TrFile-DeleteFile
  1526. |("TrFile-CopyFile"
  1527. C & "|" & 
  1528. TrFile-CopyFile
  1529.  <> 0
  1530. ) = 1 
  1531. "files
  1532. folders"
  1533. files
  1534. foldersV0
  1535. "files
  1536. folders"
  1537. files
  1538. foldersW
  1539. |("Troi-Set Default Separator"
  1540.  "|")
  1541. Troi-Set Default Separator
  1542. Canceld
  1543. Troi FM Plug-in is still installed, so new plug-in features won't be enabled.
  1544. Please remove the Troi FM Plug-in from the Extensions folder inside the FileMaker folder.
  1545. Canceld
  1546. Troi FM Plug-in is still installed, so new plug-in features won't be enabled.
  1547. Please remove the Troi FM Plug-in from the SYSTEM directory inside the FileMaker directory. 
  1548. Select File
  1549. |("TrFile-SetDefaultType"
  1550. TrFile-SetDefaultType
  1551. |("TrFile-Get FileSpec Dialog"
  1552.  "Please select a file:")
  1553. TrFile-Get FileSpec Dialog
  1554. Please select a file:|C:
  1555.  2) <>"$$"
  1556. A"set no filtering of visible files:BN
  1557. |("TrFile-SetDefaultType"
  1558. TrFile-SetDefaultType
  1559. |("TrFile-Get FileSpec Dialog"
  1560.  "Locate the first image")
  1561. TrFile-Get FileSpec Dialog
  1562. Locate the first image|D]
  1563. |("TrFile-FileSpec To FullPath"
  1564. TrFile-FileSpec To FullPath
  1565. Locate the first image|D]
  1566. |("TrFile-FileSpec To FullPath"
  1567. TrFile-FileSpec To FullPath
  1568. |("TrFile-Get FileSpec Dialog"
  1569.  "Locate the first image")
  1570. TrFile-Get FileSpec Dialog
  1571. Locate the first image|D]
  1572. |("TrFile-FileSpec To FullPath"
  1573. TrFile-FileSpec To FullPath
  1574. rFile-SetDefaultType
  1575. A"set no filtering of visible files:BN
  1576. |("TrFile-SetDefaultType"
  1577. TrFile-SetDefaultType
  1578. An Error occured. See the layout for an explantion of errors.
  1579. A"set no filtering of visible files:BN
  1580. |("TrFile-SetDefaultType"
  1581. TrFile-SetDefaultType
  1582. |the repetition number in it.B
  1583. are we ready?D%
  1584. H >= 
  1585. no: tab to the next repetitionF
  1586. increase the numberG'
  1587. H + 1
  1588. Imp: Locate import file
  1589. A"set no filtering of visible files:BN
  1590. |("TrFile-SetDefaultType"
  1591. TrFile-SetDefaultType
  1592. A"set no filtering of visible files:BN
  1593. |("TrFile-SetDefaultType"
  1594. TrFile-SetDefaultType
  1595. An Error occured. See the layout for an explantion of errors.
  1596. }`} }`} 
  1597. ~`~@~`~@
  1598. ~@~`~@~`
  1599. } }`} }`
  1600. }`} }`} 
  1601. ~`~@~`~@~`~@
  1602. ~@~`~@~`~@~`
  1603. } }`} }`
  1604. ONML""
  1605. ONML""
  1606. ONML""
  1607. FRPTH
  1608. FPTHAFWORF:Projecten:Troi FM Plug-In:Troi-FM-Plug-in1.1b2:Files:TrExport.tab
  1609. MSPCA
  1610. NAMEA
  1611. TrExport.tab
  1612. RPTHA
  1613. TrExport.tab
  1614. 1RPTH
  1615. FPTHA1WORF:Desktop Folder:batch image import:import.gif
  1616. FaliA
  1617. import.gif
  1618. GIFfGKON
  1619. batch image import
  1620. 1WORF:Desktop Folder:batch image import:import.gif
  1621. MSPCA
  1622. NAMEA
  1623. import.gif
  1624. RPTHA
  1625. import.gif
  1626. alisA
  1627. import.gif
  1628. GIFfGKON
  1629. batch image import
  1630. 1WORF:Desktop Folder:batch image import:import.gif
  1631. CRECORDCOUNT
  1632. FUNCTIONINVERSION
  1633.     GFULLPATH
  1634. Pro 3.0 - 4.0F!
  1635. Pro 3.0 - 4.1M1
  1636. }`} }`} 
  1637. ~`~@~`~@
  1638. ~@~`~@~`
  1639. } }`} }`
  1640. }`} }`} }`} 
  1641. ~`~@~`~@~`~@
  1642. ~@~`~@~`~@~`
  1643. } }`} }`} }`
  1644. ~`~@~`~@~`
  1645. } }`} }`
  1646. }`} }`} }`} 
  1647. ~`~@~`~@!
  1648. ~@~`~@~`
  1649. } }`} }`
  1650. }`} }`} 
  1651. ~`~@~`~@~`~`
  1652. ~@~`~@~`
  1653. } }`} }`
  1654. }`} }`} }`} 
  1655. ~`~@~`~@~`
  1656. ~@~`~@~`~@~`
  1657. } }`} }`} }`
  1658. }`} }`} 
  1659. ~`~@~`~@
  1660. ~@~`~@~`
  1661. } }`} }`
  1662. }`} }`} 
  1663. ~`~@~`~@~`
  1664. ~@~`~@~`~@~`
  1665. } }`} }`
  1666. }`} }`} 
  1667. ~`~@~`~@~`
  1668. ~@~`~@~`
  1669. } }`} }`
  1670. }`} }`} }`} 
  1671. ~`~@~`~@
  1672. ~@~`~@~`~@~`
  1673. } }`} }`} }`
  1674. ~`~@~`~@
  1675. } }`} }`
  1676. }`} }`} }`} 
  1677. ~`~@~`~@
  1678. ~@~`~@~`
  1679. } }`} }`
  1680. }`} }`} 
  1681. ~`~@~`~@~`
  1682. ~@~`~@~`
  1683. } }`} }`
  1684. }`} }`} }`} 
  1685. ~`~@~`
  1686. ~@~`~@~`~@~`
  1687. } }`} }`} }`
  1688. }`} }`} 
  1689. ~`~@~`~@~`~`
  1690. ~@~`~@~`
  1691. } }`} }`
  1692. }`} }`} 
  1693. ~`~@~`
  1694. ~`~@~`~@
  1695. ~@~@~
  1696. } }`} }`} 
  1697. ~`~@~`
  1698. ~@~@~
  1699. `~@~`~@~`
  1700. } }`} }`
  1701. }`} }`} }`} 
  1702. ~`~@~`~@~`
  1703. } }`} }`
  1704. }`} }`} 
  1705. ~`~@~`
  1706. }`} }`
  1707. ~`~@~`~@~`
  1708. }`} } 
  1709. } }`} }`} }`}`
  1710. ~`~@~`
  1711. } }`} 
  1712. ~`~@~`~@
  1713. ~@~@~
  1714. }`} }`} 
  1715. }`} }`
  1716. }`} } 
  1717. }`} }`}`
  1718. ~`~@~`~@
  1719. ~@~@~
  1720. }`} }`} 
  1721. ~`~@~`~@~`
  1722. }`} }`} 
  1723. }`} }`
  1724. ~`~@~`~@~`
  1725. }`} } 
  1726. } }`} }`} }`}`
  1727. } }`} 
  1728. ~`~@~`~@~`
  1729. }`} }`} 
  1730. }`} }`
  1731. ~@~`~@~`~@~`
  1732. } }`} }`} }`
  1733. } }`} }`
  1734. }`} }`} }`} 
  1735. ~@~`~@~`
  1736. } }`} }`
  1737. }`} }`} 
  1738. ~@~`~@~`
  1739. } }`} }`
  1740. }`} }`} }`} 
  1741. ~`~@~`~@~`~@
  1742. ~@~`~@~`~@~`
  1743. } }`} }`} }`
  1744. }`} }`} 
  1745. ~`~@~`~@
  1746. ~@~`~@~`
  1747. } }`} }`
  1748. }`} }`} 
  1749. ~`~@~`~@~`~@
  1750. ~@~`~@~`~@~`
  1751. } }`} }`
  1752. }`} }`} 
  1753. ~`~@~`~@
  1754. ~@~`~@~`
  1755. } }`} }`
  1756. }`} }`} }`} 
  1757. ~`~@~`~@~`~@
  1758. ~@~`~@~`~@~`
  1759. } }`} }`} }`
  1760. ~`~@~`~@
  1761. } }`} }`
  1762. GIF89a
  1763. *~d'2e
  1764. trimport.gif
  1765. cGIFfGKON
  1766. batch image import
  1767. 3WORF:Desktop Folder:batch image import:trimport.gif
  1768. MenuB
  1769. TrFile-Versionf
  1770. BExample usage: External(TrFile-Version, "") will return "Troi File Plug-in 1.0".
  1771. Important: always use this function to determine if the plug-in is loaded. If the plug-in is not loaded use of external functions may result in data loss, as FileMaker will return an empty field to any external function that is not loaded.
  1772. nonej
  1773. Filesn
  1774. About FileSpec
  1775. FolderList
  1776. O = ""
  1777. Cancel
  1778. Please select a folder to list first.C_
  1779. |("TrFile-ListFolder"
  1780. K & "|" & 
  1781. TrFile-ListFolder
  1782. FolderList (Select Folder)
  1783. |("TrFile-FindFolder"
  1784.  "root")
  1785. TrFile-FindFolder
  1786. root|B]
  1787. |("TrFile-FileSpec To FullPath"
  1788. TrFile-FileSpec To FullPath
  1789. A To FolderList (Scripted Version)
  1790. errors.
  1791.     Open file
  1792. Set all globals
  1793. To Menu
  1794. Quit button dialog
  1795. ----- General ------
  1796. Check FILE plug-in
  1797. Check for NO Troi FM plug-in
  1798. ----- File Manipulation ------
  1799.  File Manipulation: Simple Dialog
  1800.  File Manipulation: Use File Spec
  1801. .File Manipulation: Get File Contents & Details
  1802.  File Manipulation: Create a file
  1803.  File Manipulation: Delete a file
  1804. ,File Manipulation: Toggle FSSpec / Full Path
  1805. &File Manipulation: FSSpec to Full Path
  1806. &File Manipulation: Full Path to FSSpec
  1807. File Manip: Filtering Files
  1808. File Manip: Copy a file
  1809. File Manip: Move a file
  1810. &!File Manip: GoTo Append to a file
  1811. ($File Manip: Append to a file (start)
  1812. File Manip: Append to a file
  1813. ,%File Manip: Partial Get File Contents
  1814. Folder Manip: Create a Folder
  1815. 0+Folder Manip: Create a File with FindFolder
  1816. Clear File Spec
  1817. To Multi export
  1818. ----- Multi Export ------
  1819. Export Data
  1820. Exp: Locate Export file
  1821. Exp: Locate destination folder
  1822. Exp: Do Multi export
  1823.  "biff"
  1824.  64000
  1825.  -1) -1) & "biff" & 
  1826. ) & ".gif"
  1827. |("TrFile-DeleteFile"
  1828. TrFile-DeleteFile
  1829. |("TrFile-CopyFile"
  1830.  & "|" & 
  1831. TrFile-CopyFile
  1832.  <> 0
  1833. Export 
  1834. Cancelh
  1835. Replace
  1836. An Error occured. See the layout for an explantion of errors.G'
  1837. imp: goto right repetition
  1838. UtNOTES: 
  1839. - on Windows you can also open directories. 
  1840. - on Windows if the file is already open it will open it again.
  1841. Possible Returned error codes 
  1842. $$-35    = No such volume (Wrong disk name or not mounted).
  1843. $$-43    = File not found.     
  1844. $$-50     = Parameter error.
  1845. $$-120    = Directory not found.
  1846. Multi ExportB
  1847. want to export, run this script:
  1848. ABEE>> files are exported with the number of records in the name:
  1849. Example: EXP32.TAB
  1850. destinat. exp.filename
  1851. gErrorCode
  1852. Multi Image ImportB
  1853.  ite checkbox to overwrite.
  1854. U*This technique can also be used for Importing records or images from multiple files.
  1855. How does it work?
  1856. Multi Image ImportB
  1857. Export Data
  1858. Exp: Locate Export file
  1859. |("TrFile-Get FileSpec Dialog"
  1860.  "Give a file to copy")
  1861. TrFile-Get FileSpec Dialog
  1862. Give a file to copy|B]
  1863. |("TrFile-FileSpec To FullPath"
  1864. TrFile-FileSpec To FullPath
  1865. Exp: Locate destination folder
  1866. Exp: Check Folder Spec
  1867. |("TrFile-Get FileSpec Dialog"
  1868.  "Give a file to copy")
  1869. TrFile-Get FileSpec Dialog
  1870. Give a file to copy|B]
  1871. |("TrFile-FileSpec To FullPath"
  1872. TrFile-FileSpec To FullPath
  1873. Exp: Locate destination folder
  1874. Exp: Check Folder Spec
  1875.  File Manipulation: Simple Dialog
  1876.  File Manipulation: Use File Spec
  1877. .File Manipulation: Get File Contents & Details
  1878.  File Manipulation: Create a file
  1879.  File Manipulation: Delete a file
  1880. ,File Manipulation: Toggle FSSpec / Full Path
  1881. &File Manipulation: FSSpec to Full Path
  1882. &File Manipulation: Full Path to FSSpec
  1883. File Manip: Filtering Files
  1884. File Manip: Copy a file
  1885. File Manip: Move a file
  1886. &!File Manip: GoTo Append to a file
  1887. ($File Manip: Append to a file (start)
  1888. File Manip: Append to a file
  1889. ,%File Manip: Partial Get File Contents
  1890. Folder Manip: Create a Folder
  1891. 0+Folder Manip: Create a File with FindFolder
  1892. CRECORDCOUNT
  1893. ERRORDESCRIPTIONCALC
  1894. FOLDERLISTCALC
  1895. FOLDERLISTCOUNTCALC
  1896. FUNCTIONCATEGORY
  1897. FUNCTIONDESCRIPTION
  1898. FUNCTIONID
  1899. *DESCRIPTION
  1900. FUNCTIONID
  1901. export FileSpec
  1902. Export to Multiple files*
  1903. q    Export 1x
  1904. destination Folder
  1905. To Menu
  1906. step 1
  1907. Locate the Export file
  1908. step 2
  1909. This example creates an export file called 
  1910. TrExport.tab
  1911.  in the folder of this FMP-file. You might want to change that: it
  1912. s in the script 
  1913. Export Data
  1914. !A) You have to do this only ONCE:
  1915. Please find the exported file.
  1916. Create a destination folder
  1917. step 3
  1918. TSpecify a destination folder. 
  1919. You can also type in a full path to the folder below.
  1920. Do Multi Export
  1921. ,B) When you want to export, run this script:
  1922. ABEE>> files are exported with the number of records in the name:
  1923. Example: EXP32.TAB
  1924. destinat. exp.filename
  1925. gErrorCode
  1926. By default files are not overwritten. Use this checkbox if you want to overwrite existing files. (See the script for how to do this with the TrFile-DeleFile function.
  1927. overwrite 
  1928. Files?
  1929. TError -48 (Mac) or 80 (Win) = files exists. Set the overwrite checkbox to overwrite.
  1930. cRecordCountB
  1931. gDestExportFSSpecB
  1932. gOverwriteExpFilesB
  1933. gContainerB
  1934. gNumber2B
  1935. gImagesPathsB
  1936. gFolderListB
  1937. gFolderListSwitchesB
  1938. gFolderListCommandB
  1939. AX"External(""TrFile-ListFolder"";  """ & 
  1940.  " &") & " |" & 
  1941. O & """)"
  1942.  External("TrFile-ListFolder";  "
  1943. FolderListCalcB
  1944. K <> "" 
  1945. O <> "" 
  1946. |("TrFile-ListFolder"
  1947.  " &") & " |" &
  1948.    ""
  1949. TrFile-ListFolder
  1950.     GFULLPATH
  1951. GIMAGESPATHS
  1952. GNUMBER
  1953. GNUMBER2
  1954. GOVERWRITEEXPFILES
  1955. GSEARCHCOMMAND
  1956. GSEARCHCOMMENTS
  1957. GSEARCHRESULTS
  1958. GSEARCHSPEC
  1959. GSEARCHSWITCHES
  1960. GSEARCHVOLUME
  1961. GTEXT
  1962. GTHECREATOR
  1963. GTHEDATASIZE
  1964. GTHEDATECREATED
  1965. GTHEDATEMODIFIED
  1966. GTHEDATETIMECREATED
  1967. GTHEDATETIMEMODIFIED
  1968. GTHEFILE
  1969. GTHEFILESIZE
  1970. GTHEFILESPEC
  1971. GTHEFILETYPE
  1972. GTHERESSIZE
  1973. GTHETIMECREATED
  1974. GTHETIMEMODIFIED
  1975. GUSERINPUT
  1976. GVERSION
  1977. GXPLATFORMRETURN
  1978. RANDOMNR
  1979. SEARCHRESULTSCOUNTCALC
  1980. gTheFile
  1981. U*This technique can also be used for Importing records or images from multiple files.
  1982. How does it work?
  1983. ----- FolderList ------
  1984. To FolderList Demo
  1985. O = ""
  1986. ) = 1 
  1987. |("TrFile-FileSpec To FullPath"
  1988. |("TrFile-FindFolder"
  1989.  "root") )
  1990.    "C:"
  1991. TrFile-FileSpec To FullPath
  1992. TrFile-FindFolder
  1993. root||
  1994. A    Do Search
  1995. Q = ""
  1996. Cancel
  1997. Please select a file name to search for first.C
  1998. "Searching...."
  1999. Searching....
  2000. errors.
  2001. ----- File Manipulation ------
  2002. ----- General ------
  2003. ----- Documentation etc ------
  2004. File Manip: Copy a file
  2005. Get the source fileB~
  2006. |("TrFile-Get FileSpec Dialog"
  2007.  "Give a file to copy")
  2008. TrFile-Get FileSpec Dialog
  2009. Give a file to copy|
  2010. ) = 1    
  2011. |("TrFile-Get FileSpec Dialog"
  2012.  "Please choose a file:")
  2013. TrFile-Get FileSpec Dialog
  2014. Please choose a file:|
  2015. Cancel
  2016. The Macintosh lets you distinguish files by their file type. To list only specific files in a "TrFile-Get FileSpec Dialog" function, you can set one or more filters by using the function: 
  2017. External ("TrFile-SetDefaultType" ; "<TYPE list>")
  2018. Cancel
  2019. The following example lets you select a file of type 'FMP3' and 'TEXT'. If you don't see any files in the current folder, browse to a folder where you find FileMaker Pro files and/or text files.G^
  2020. |("TrFile-SetDefaultType"
  2021.  "FMP3TEXT")
  2022. TrFile-SetDefaultType
  2023. FMP3TEXT|
  2024. ultType
  2025. |("TrFile-Search"
  2026. T & "|"& 
  2027. U & "|" & 
  2028. TrFile-Search
  2029. W > 0 
  2030.  "Nothing Found!")
  2031. Nothing Found!2
  2032. To Search Demo
  2033. U= ""
  2034. ) = 1 
  2035. |("TrFile-FileSpec To FullPath"
  2036. |("TrFile-FindFolder"
  2037.  "root") )
  2038.    "C:"
  2039. TrFile-FileSpec To FullPath
  2040. TrFile-FindFolder
  2041. root||
  2042. TEST Search Loop
  2043.  "aa" 
  2044.  "bb" 
  2045.  "ee" 
  2046. "ff")
  2047. Multi Ex-/Import ExplanationB
  2048. import 
  2049. FileSpec
  2050. Import of multiple images
  2051. q    Import 1x
  2052. source file
  2053. Folder
  2054. To Menu
  2055. step 1
  2056. Locate the imported file
  2057. step 2
  2058. This example imports a file called 
  2059. trimport.gif
  2060.  that is already in the folder of this FMP-file. You might want to change that: it
  2061. s in the script 
  2062. Import Image Data
  2063. export FileSpec
  2064. Import of multiple images*
  2065. q    Export 1x
  2066. destination Folder
  2067. To Menu
  2068. step 1
  2069. Locate the Export file
  2070. step 2
  2071. !A) You have to do this only ONCE:
  2072. /Please find this imported file 
  2073. trimport.gif
  2074. Locate the first image
  2075. step 3
  2076. 8locate the first image to import in the 
  2077. folder 
  2078. images
  2079. Do Multi Import
  2080. ,B) When you want to import, run this script:
  2081. 4 images are imported.re imported.
  2082. ilename
  2083. Example: EXP32.TAB
  2084. destinat. exp.filename
  2085. By default files are not overwritten. Use this checkbox if you want to overwrite existing files. (See the script for how to do this with the TrFile-DeleFile function.
  2086. overwrite 
  2087. Files?
  2088. TError -48 (Mac) or 80 (Win) = files exists. Set the overwrite checkbox to overwrite.
  2089. U*This technique can also be used for Importing records or images from multiple files.
  2090. gContainer
  2091. gNumber
  2092. clear images
  2093. Images 
  2094. Paths
  2095. How does it work?
  2096. 8GE*) 
  2097. |("TrFile-FullPath To FileSpec"
  2098. TrFile-FullPath To FileSpec
  2099. File Manip: Filtering Files
  2100. Cancel
  2101. You can get a "TrFile-Get FileSpec Dialog" function to display all files (No filtering).CN
  2102. |("TrFile-SetDefaultType"
  2103. TrFile-SetDefaultType
  2104. Uo Multi Image Import
  2105. imp: goto right repetition
  2106. Imp: Locate import file
  2107. Imp: Locate first image
  2108. Imp: Clear fields
  2109. ----- FolderList ------
  2110. FolderList
  2111. FolderList (Select Folder)
  2112. To FolderList Demo
  2113. \ To FolderList (Scripted Version)
  2114. Launch File
  2115. Select File
  2116. ----- Multi PDFs ------
  2117. To Multi PDF Printing
  2118. Print one PDF
  2119. Exp: Locate PDF file
  2120. Do Multi PDFs
  2121. ----- Search ------
  2122. To Search Demo
  2123. p    Do Search
  2124. ----- Documentation etc ------
  2125. Print Function Specs
  2126. Copy Parameters
  2127. x WWW: Goto web site: www.troi.com
  2128. WWW: Order via web site
  2129. Print this record
  2130. BeepBeep
  2131. ----- Troi Test scripts ------
  2132. TEST: FindFolder
  2133. 'TEST LOOP: File Manip: Append to a file
  2134. TEST Search Loop
  2135. OKns of thi
  2136. Pug-in, you must re
  2137. Cancelem.
  2138. (Re)start FileMaker Pr
  2139. . The Troi FM plug-in will displaAre you sure you want to delete this file?H+
  2140. ) = 1    
  2141. |("TrFile-DeleteFile"
  2142. TrFile-DeleteFile
  2143. K!File was deleted. (errorcode = 0)L
  2144. OKns of thi
  2145. Pug-in, you must re
  2146. Cancelem.
  2147. (Re)start FileMaker Pr
  2148. . The Troi FM plug-in will displaThe file has been deleted.M
  2149. OKns of thi
  2150. Pug-in, you must re
  2151. Cancelem.
  2152. (Re)start FileMaker Pr
  2153. . The Troi FM plug-in will displaThe file ould not be deleted.N
  2154. OKns of thi
  2155. Pug-in, you must re
  2156. Cancelem.
  2157. (Re)start FileMaker Pr
  2158. . The Troi FM plug-in will displaThe file was not deleted.
  2159.  ;NYou pressed cancel.
  2160. A File Manipulation: Delete a file
  2161. import FileSpec
  2162. Export of multiple images
  2163. q    Import 1x
  2164. destination Folder
  2165. To Menu
  2166. step 1
  2167. (LIST
  2168. LISTA    Full Path
  2169. VDEFA(
  2170. (LIST
  2171. LISTA
  2172. VDEFA(
  2173. (LIST
  2174. VDEFA(
  2175. (LIST
  2176. VDEFA(
  2177. (LIST
  2178. VDEFA(
  2179. (LIST
  2180. LISTA
  2181. VDEFA(
  2182. (LIST
  2183. LISTAIfiles
  2184. folders
  2185. showaliases
  2186. showshortcuts
  2187. showinvisibles
  2188. showpointdirs
  2189. VDEFA(
  2190. (LIST
  2191. ointdirs
  2192. FolderListCountCalcB
  2193. FPTHA8WORF:Desktop Folder:batch image import:images:import.gif
  2194. FaliA
  2195. import.gif
  2196. GIFfGKON
  2197. images
  2198. 8WORF:Desktop Folder:batch image import:images:import.gif
  2199. MSPCA
  2200. NAMEA
  2201. import.gif
  2202. RPTHA
  2203. :images:import.gif
  2204. alisA
  2205. import.gif
  2206. GIFfGKON
  2207. images
  2208. 8WORF:Desktop Folder:batch image import:images:import.gif
  2209. FPTHA3WORF:Desktop Folder:batch image import:trimport.gif
  2210. FaliA
  2211. trimport.gif
  2212. GIFfGKON
  2213. batch image import
  2214. 3WORF:Desktop Folder:batch image import:trimport.gif
  2215. 8RPTH
  2216. Imp: Clear fields
  2217. To Multi Import
  2218. ----- Multi Export ------
  2219. ----- Multi Image Import ------
  2220. |("Troi-DoDialog"
  2221.  "Do you want to quit the FileMaker application as well?|OK|No||Cancel")
  2222. Troi-DoDialog
  2223. DDo you want to quit the FileMaker application as well?|OK|No||Cancel|C
  2224. OK1F1F1F1F1
  2225. F1F1F1F1F1F1F1F1F1
  2226. Noncel1F1F1F1F1F1F1F1F1F1F1F1F1F1
  2227. Cancel1F1F1F1F1F1F1F1F1F1F1F1F1F1Do you want to quit the FileMaker application as well?D+
  2228. ) = 1    
  2229. ) = 2    
  2230. Print Function Specs
  2231. ) < 601    
  2232. Copy Parameters
  2233. Cancel
  2234. Do you want to copy the parameters?B+
  2235. ) = 1    
  2236. Exp: Check Folder Spec
  2237. ----- Multi Image Import ------
  2238. To Multi Import v2
  2239. To Multi Import
  2240. Import Image Data
  2241. imp: Do Multi Image Import
  2242. imp: goto right repetition
  2243. Imp: Locate import file
  2244. Imp: Locate first image
  2245. Imp: Clear fields
  2246. ----- FolderList ------
  2247. FolderList
  2248. FolderList (Select Folder)
  2249. To FolderList Demo
  2250. \ To FolderList (Scripted Version)
  2251. Launch File
  2252. Select File
  2253. ----- Multi PDFs ------
  2254. To Multi PDF Printing
  2255. Print one PDF
  2256. Exp: Locate PDF file
  2257. Do Multi PDFs
  2258. ----- Search ------
  2259. To Search Demo
  2260. p    Do Search
  2261. ----- Documentation etc ------
  2262. Print Function Specs
  2263. Copy Parameters
  2264. x WWW: Goto web site: www.troi.com
  2265. WWW: Order via web site
  2266. Print this record
  2267. BeepBeep
  2268. ----- Troi Test scripts ------
  2269. TEST: FindFolder
  2270. 'TEST LOOP: File Manip: Append to a file
  2271. TEST Search Loop
  2272. RPTHA
  2273. trimport.gif
  2274. alisA
  2275. trimport.gif
  2276. GIFfGKON
  2277. batch image import
  2278. 3WORF:Desktop Folder:batch image import:trimport.gif
  2279. 3RPTH
  2280. FaliA
  2281. trimport.gif
  2282. GIFfGKON
  2283. batch image import
  2284. 3WORF:Desktop Folder:batch image import:trimport.gif
  2285. MSPCA
  2286. NAMEA
  2287. trimport.gif
  2288. RPTHA
  2289. :trimport.gif
  2290. alisA
  2291. trimport.gif
  2292. GIFfGKON
  2293. batch image import
  2294. 3WORF:Desktop Folder:batch image import:trimport.gif
  2295. NAMEA
  2296. trimport.gif
  2297. MSPCA
  2298. 3RPTH
  2299. FPTHA3WORF:Desktop Folder:batch image import:trimport.gif
  2300. FaliA
  2301. trimport.gif
  2302. GIFfGKON
  2303. batch image import
  2304. 3WORF:Desktop Folder:batch image import:trimport.gif
  2305.  Version)
  2306. Launch File
  2307. Select File
  2308. ----- Documentation etc ------
  2309. Print Function Specs
  2310. Copy Parameters
  2311. f WWW: Goto web site: www.troi.com
  2312. WWW: Order via web site
  2313. Print this record
  2314. BeepBeep
  2315. TEST: FindFolder
  2316. p'TEST LOOP: File Manip: Append to a file
  2317. Search
  2318. How does Multi im/export work?
  2319. FileMaker Limitation
  2320. FileMaker has the limitation that in a script it can only export to a fixed file, or ask the user for a file name. You can not specify the file by a calculation in a script. The same limitations apply when importing records or images.
  2321. 'The way around this limitation (export)
  2322. The idea is to let FileMaker do the export to a fixed file first and then copy that exported file to the desired location, giving it the wanted name at the same time. This can be done with the Troi file plug-in in a script by the following steps:
  2323.    Export Records [Restore, No dialog, TrExport.tab]                            export to a fixed location
  2324.    Set Field [gDestExportFSSpec, gTheFileSpec & "EXP" & Stat]           calculate the filepath of the destination 
  2325.    Set Field [gErrorCode, External("TrFile-CopyFile"; 
  2326.             gExportFSSpec & "|" &gDestExportFSSpec)]    copy the file to the destination  
  2327.    Exit Loop If [...]
  2328. End Loop
  2329. the destination
  2330.    Exit Loop If [...]
  2331. End Loop
  2332.  2 ) = "$$"
  2333. |("TrFile-Save FileSpec Dialog"
  2334.  "Were should I move it?")
  2335. TrFile-Save FileSpec Dialog
  2336. Were should I move it?|D;
  2337.  2 ) = "$$"
  2338. |("TrFile-MoveFile"
  2339.  & "|" & 
  2340. TrFile-MoveFile
  2341. WWW: Order via web site
  2342. .http://order.kagi.com/cgi-bin/register1.cgi?5iP
  2343. Button 2
  2344. Print this record
  2345. BeepBeep
  2346.  2 ) = "$$"
  2347. |("TrFile-FileSpec To FullPath"
  2348. TrFile-FileSpec To FullPath
  2349. Get the destinationF
  2350. |("TrFile-Save FileSpec Dialog"
  2351.  "Where should I save it?")
  2352. TrFile-Save FileSpec Dialog
  2353. Where should I save it?|G;
  2354.  2 ) = "$$"
  2355. Here is the copying done:IZ
  2356. |("TrFile-CopyFile"
  2357.  & "|" & 
  2358. TrFile-CopyFile
  2359. |("TrFile-FileSpec To FullPath"
  2360. TrFile-FileSpec To FullPath
  2361. File Manip: Move a file
  2362. |("TrFile-Get FileSpec Dialog"
  2363.  "Give a file to copy")
  2364. TrFile-Get FileSpec Dialog
  2365. Give a file to copy|
  2366.  =1000
  2367. Print one PDF
  2368. ----- Multi PDFs ------
  2369. Do Multi PDFs
  2370. |("TrFile-DeleteFile"
  2371. TrFile-DeleteFile
  2372. d name at the same time. This can be done with the Troi file plug-in in a script by the following steps:
  2373. !GThe sample scripts are a bit more elaborated and do error checking etc.
  2374. hFor import the idea is this almost the same: First copy the file to be imported to a fixed file. Then let FileMaker do the import of this fixed file. This works with importing records, pictures and movies. See the sample scripts for more details. One limitation remains: at this moment we know of no way to do a multi-import of pictures by storing a reference.
  2375. #'The way around this limitation (import)
  2376. To Menu
  2377. to multi export
  2378. to multi import
  2379. Multi Image Import CopyB
  2380. +A,File Manipulation: Toggle FSSpec / Full Path
  2381. " = ""
  2382. "Full Path"
  2383.     Full PathC
  2384. ,A WWW: Goto web site: www.troi.com
  2385. Cancel
  2386. Do you want to connect to Troi's web site?B+
  2387. ) = 1    
  2388. Cancel
  2389. Do you want to connect to Troi's web site?B+
  2390. ) = 1    
  2391. |("TrFile-GetDateTimeModified"
  2392. TrFile-GetDateTimeModified
  2393. TrFile-GetContents
  2394. OKsrc   #28
  2395.   2808 Web Compani
  2396. Cancel     WORF        FMXT dw da
  2397. a  #334062
  2398.   2866 Web Companion  If you read from beyond the end of the file errorcode $$-39 is returned.Jg
  2399. |("TrFile-GetContents"
  2400.  & "|200000|10")
  2401. TrFile-GetContents
  2402. |200000|10
  2403. OKsrc   #28
  2404.   2808 Web Compani
  2405. Cancel     WORF        FMXT dw da
  2406. a  #334062
  2407.   2866 Web Companion  You pressed cancel.
  2408. When you cancel a result ""$$-1"" is returned. In your scripts you should test for this result.
  2409. Folder Manip: Create a Folder
  2410.     A-Specify a folder and puts this on the desktop
  2411. |10|0
  2412. FPTHA3WORF:Desktop Folder:batch image import:trimport.gif
  2413. FaliA
  2414. trimport.gif
  2415. GIFfGKON
  2416. batch image import
  2417. 3WORF:Desktop Folder:batch image import:trimport.gif
  2418. MSPCA
  2419. NAMEA
  2420. trimport.gif
  2421. RPTHA
  2422. :trimport.gif
  2423. alisA
  2424. trimport.gif
  2425. GIFfGKON
  2426. batch image import
  2427. 3WORF:Desktop Folder:batch image import:trimport.gif
  2428. FPTHA3WORF:Desktop Folder:batch image import:trimport.gif
  2429. FaliA
  2430. trimport.gif
  2431. GIFfGKON
  2432. batch image import
  2433. 3WORF:Desktop Folder:batch image import:trimport.gif
  2434. FRPTH
  2435. FPTHAFWORF:Projecten:Troi FM Plug-In:Troi-FM-Plug-in1.1b2:Files:TrExport.tab
  2436. MSPCA
  2437. NAMEA
  2438. TrExport.tab
  2439. RPTHA
  2440. TrExport.tab
  2441. 1RPTH
  2442. FPTHA1WORF:Desktop Folder:batch image import:import.gif
  2443. FaliA
  2444. import.gif
  2445. GIFfGKON
  2446. batch image import
  2447. 1WORF:Desktop Folder:batch image import:import.gif
  2448. MSPCA
  2449. NAMEA
  2450. import.gif
  2451. RPTHA
  2452. import.gif
  2453. alisA
  2454. import.gif
  2455. GIFfGKON
  2456. batch image import
  2457. 1WORF:Desktop Folder:batch image import:import.gif
  2458. RPTHA
  2459. trimport.gif
  2460. alisA
  2461. trimport.gif
  2462. GIFfGKON
  2463. batch image import
  2464. 3WORF:Desktop Folder:batch image import:trimport.gif
  2465. 3RPTH
  2466. FaliA
  2467. trimport.gif
  2468. GIFfGKON
  2469. batch image import
  2470. 3WORF:Desktop Folder:batch image import:trimport.gif
  2471. MSPCA
  2472. NAMEA
  2473. trimport.gif
  2474. RPTHA
  2475. trimport.gif
  2476. alisA
  2477. trimport.gif
  2478. GIFfGKON
  2479. batch image import
  2480. 3WORF:Desktop Folder:batch image import:trimport.gif
  2481. NAMEA
  2482. trimport.gif
  2483. MSPCA
  2484. 3RPTH
  2485. FPTHA3WORF:Desktop Folder:batch image import:trimport.gif
  2486. FaliA
  2487. trimport.gif
  2488. GIFfGKON
  2489. batch image import
  2490. 3WORF:Desktop Folder:batch image import:trimport.gif
  2491. FPTHA3WORF:Desktop Folder:batch image import:trimport.gif
  2492. FaliA
  2493. trimport.gif
  2494. GIFfGKON
  2495. batch image import
  2496. 3WORF:Desktop Folder:batch image import:trimport.gif
  2497. MSPCA
  2498. NAMEA
  2499. trimport.gif
  2500. RPTHA
  2501. trimport.gif
  2502. alisA
  2503. trimport.gif
  2504. GIFfGKON
  2505. batch image import
  2506. 3WORF:Desktop Folder:batch image import:trimport.gif
  2507. XRPTH
  2508. FPTHAXKES:Projecten:Troi Plug-In 981215:Troi Plug-ins:FILE:Troi-File-Plug-in1.2.1:ImageImp.fp3
  2509. MSPCA
  2510. NAMEA
  2511. ImageImp.fp3
  2512. RPTHA
  2513. ImageImp.fp3
  2514. Locate the imported file
  2515. step 2
  2516. This example imports a file called 
  2517. trimport.gif
  2518.  that is already in the folder of this FMP-file. You might want to change that: it
  2519. s in the script 
  2520. Import Image Data
  2521. !A) You have to do this only ONCE:
  2522. /Please find this imported file 
  2523. trimport.gif
  2524. Locate the first image
  2525. step 3
  2526. 8locate the first image to import in the 
  2527. folder 
  2528. images
  2529. Do Multi Import
  2530. ,B) When you want to import, run this script:
  2531. 4 images are imported.
  2532. clear images
  2533. Images 
  2534. Paths
  2535. How does it work?
  2536. FolderListB
  2537. Multi PDF PrintB
  2538.  Directory not found.
  2539. 3) Set switches
  2540. 1) Select the disk to search 
  2541. Multi PDF PrintB
  2542. W$switches, determining what is listed|
  2543. folder path
  2544. @A$FolderList (using field calculation)
  2545. To Menu
  2546. K(below the command used to get this list:
  2547. NEW in 1.2
  2548. Type a full path
  2549. PA8terminology:
  2550. Mac    Windows
  2551. folder    directory
  2552. alias    shortcut
  2553. FolderList calculation
  2554. # of items found
  2555. ]Dthese 2 switches have the same effect:
  2556. show also aliases (shortcuts)
  2557. list all files
  2558. _%show also invisible files and folders
  2559. `FWindows: show also directories . and ..
  2560. Mac OS: this switch is ignored
  2561. list all folders (directories)
  2562. Change switches
  2563. To Scripted Version
  2564. FolderList scriptedB
  2565. Open a file with the program that has registered it. 
  2566. Parameter: FileSpec : the path to the file to launch.
  2567. On the Mac the program that opens it is determined by the Filetype of the file. On windows this is determined by the extension of the file. So a text file "ReadMe.txt" will usually be opened by SimpleText (Mac) or WordPad (Windows).
  2568. Example: a pdf file "userguide.pdf" will be opened by Acrobat reader.
  2569. Example 2: this will open a file in MS Word:
  2570.       External ("TrFile-Launch" ; C:\EB
  2571. XAMPLE\README.WRD")
  2572. Possible Returned error codes:
  2573. $$-35    = No such volume (Wrong disk name or not mounted).
  2574. $$-43    = File not found.     
  2575. $$-50     = Parameter error.
  2576. $$-120    = Directory not found.
  2577. FileSpecj
  2578. Filesn
  2579. 565,037997236959u
  2580. TrFile-Searchf
  2581. 565,037997236959u
  2582. |("TrFile-SetDefaultType"
  2583.  "PDF ")
  2584. TrFile-SetDefaultType
  2585. PDF |B
  2586. |("TrFile-Get FileSpec Dialog"
  2587.  "Locate the Printed PDF")
  2588. TrFile-Get FileSpec Dialog
  2589. Locate the Printed PDF|C;
  2590.  2) <> "$$"
  2591. |("TrFile-FileSpec To FullPath"
  2592. TrFile-FileSpec To FullPath
  2593. Cancel
  2594. The next step will delete the just selected PDF file This is needed for the multi printing to work. Do you want to delete it?F*
  2595. ) =2    
  2596. |("TrFile-DeleteFile"
  2597. TrFile-DeleteFile
  2598. To Multi PDF Printing
  2599. ----- Troi Test scripts ------
  2600. ----- Search ------
  2601. To Multi Import v2
  2602. the FileSpec
  2603. Launch
  2604. To Menu
  2605. 1-Select File
  2606. 2-Launch it!
  2607. returned ErrorCode
  2608. With this function you can open files in the the application that has registered it.
  2609. Example1: 
  2610. a text file "ReadMe.txt" will be opened by WordPad (Win) or SimpleText (Mac)
  2611. Example2: 
  2612. a pdf file "userguide.pdf" will be opened by Acrobat reader.
  2613. 1-Select File
  2614. 2-Launch it!
  2615. returned ErrorCode
  2616. With this function you can open files in the the application that has registered it.
  2617. Example1: 
  2618. a text file "ReadMe.txt" will be opened by WordPad (Win) or SimpleText (Mac)
  2619. Example2: 
  2620. a pdf file "userguide.pdf" will be opened by Acrobat reader.
  2621. - on Windows you can also open directories. 
  2622. - on Windows if the file is already open it will open it again.
  2623. A+Specify a file and puts this on the desktopBN
  2624. |("TrFile-SetDefaultType"
  2625. TrFile-SetDefaultType
  2626. |("TrFile-Get FileSpec Dialog"
  2627.  "Select a file to DELETE
  2628. WARNING: Deletion cannot be undone.")
  2629. TrFile-Get FileSpec Dialog
  2630. ;Select a file to DELETE
  2631. WARNING: Deletion cannot be undone.|D;
  2632.  2 ) = "$$"
  2633. User pressed cancelF|
  2634. OKns of thi
  2635. Pug-in, you must re
  2636. Cancelem.
  2637. (Re)start FileMaker Pr
  2638. . The Troi FM plug-in will displaDeletion was canceled.
  2639. SearchB
  2640. erminology:
  2641. Mac    Windows
  2642. folder    directory
  2643. alias    shortcut
  2644. z Search Results (<<
  2645. ABFH>> found)
  2646. LISTAFfiles
  2647. folders
  2648. exactname
  2649. showaliases
  2650. showshortcuts
  2651. showinvisibles
  2652. VDEFA(
  2653. gSearchSwitchesB
  2654. gSearchVolumeB
  2655. SearchResultsCountCalcB
  2656. gSearchCommentsB
  2657. External("TrFile-Search";  "
  2658. Set all globals
  2659. TrFile-DeleteFile
  2660. K!File was deleted. (errorcode = 0)L
  2661. OKns of thi
  2662. Pug-in, you must re
  2663. Cancelem.
  2664. (Re)start FileMaker Pr
  2665. . The Troi FM plug-in will displaThe file has been deleted.M
  2666. OKns of thi
  2667. Pug-in, you must re
  2668. Cancelem.
  2669. (Re)start FileMaker Pr
  2670. . The Troi FM plug-in will displaThe file ould not be deleted.N
  2671. OKns of thi
  2672. Pug-in, you must re
  2673. Cancelem.
  2674. (Re)start FileMaker Pr
  2675. . The Troi FM plug-in will displaThe file was not deleted.
  2676. Set all globals
  2677. search for files with name
  2678. Search
  2679. To Menu
  2680. o$switches, determining what is listed
  2681. qDthese 2 switches have the same effect:
  2682. show also aliases (shortcuts)
  2683. list all files
  2684. s%show also invisible files and folders
  2685. search for the exact filename
  2686. list all folders (directories)
  2687. command used
  2688. xA8terminology:
  2689. Mac    Windows
  2690. folder    directory
  2691. alias    shortcut
  2692. z Search Results (<<
  2693. ABFH>> found)
  2694. B'Select just 10 records to start with...C"Now we loop to do the multi exportDH
  2695.  & "Demo" & 
  2696. ) & ".PDF"
  2697. F = "Yes"
  2698. |("TrFile-DeleteFile"
  2699. TrFile-DeleteFile
  2700. |("TrFile-MoveFile"
  2701. C & "|" & 
  2702. TrFile-MoveFile
  2703.  <> 0
  2704. Export 
  2705. Cancelh
  2706. Replace
  2707. An Error occured. See the layout for an explantion of errors.J+
  2708. ) = 1    
  2709. Exp: Locate PDF file
  2710. ges from multiple files.
  2711. PDF FileSpec
  2712. Print to Multiple PDFs
  2713. Print 1x
  2714. destination Folder
  2715. To Menu
  2716. step 1
  2717. Locate the Printed file
  2718. step 2
  2719. You need PDFWriter as printer installed. If so this example creates an pdf file called 
  2720. untitled
  2721.  on the desktop folder. The script doing this is called 
  2722. Print one PDF"
  2723. !A) You have to do this only ONCE:
  2724. Please find the PDF file.
  2725. Create a destination folder
  2726. step 3
  2727. TSpecify a destination folder. 
  2728. You can also type in a full path to the folder below.
  2729. Do Multi PDFs
  2730. ,B) When you want to export, run this script:
  2731. T10 PDF files are printed with the number of records in the name:
  2732. Example: Demo32.PDF
  2733. destinat. exp.filename
  2734. gErrorCode
  2735. By default files are not overwritten. Use this checkbox if you want to overwrite existing files. (See the script for how to do this with the TrFile-DeleFile function.
  2736. overwrite 
  2737. Files?
  2738. TError -48 (Mac) or 80 (Win) = files exists. Set the overwrite checkbox to overwrite.
  2739. ges from multiple files.
  2740. U*This technique can also be used for Importing records or images from multiple files.
  2741. How does it work?
  2742. |("TrFile-Get FileSpec Dialog"
  2743.  "Select a FileMaker file or a TEXT file:")
  2744. TrFile-Get FileSpec Dialog
  2745. 'Select a FileMaker file or a TEXT file:|I
  2746. Reset the default type. JOIf not specified  the type 'TEXT' is used with the function "TrFile-CreateFile"KV
  2747. |("TrFile-SetDefaultType"
  2748.  "TEXT")
  2749. TrFile-SetDefaultType
  2750. TEXT|
  2751. )A.File Manipulation: Get File Contents & Details
  2752. |("TrFile-GetDataSize"
  2753. TrFile-GetDataSize
  2754. |("TrFile-GetResForkSize"
  2755. TrFile-GetResForkSize
  2756. |("TrDl-Version"
  2757.  "") = ""
  2758. TrDl-Version
  2759. <R<<8<98%8! !
  2760. Cancel
  2761. !;<R<R8;98%8%
  2762.  ;NThe file was created. This example file is actually a real Filemaker file!"M
  2763. |("TrDl-DoDialog"
  2764.  "The file """ & 
  2765.  &""" was created. This example file is actually a real Filemaker file!")
  2766. TrDl-DoDialog
  2767. The file "
  2768. C" was created. This example file is actually a real Filemaker file!
  2769. <R<<8<98%8! !
  2770. Cancel
  2771. !;<R<R8;98%8%
  2772.  ;NThe file could not be created.
  2773. Check if it already exists.Oy
  2774. <R<<8<98%8! !
  2775. Cancel
  2776. !;<R<R8;98%8%
  2777.  ;NYou pressed cancel.
  2778. A File Manipulation: Delete a file
  2779. List the content of a folder (directory).
  2780. Parameter 1: switches: this can be one or more of the following:
  2781. files        list all files in this folder
  2782. folders        list all folders (subdirectories) in this folder
  2783. showaliases    list all aliases (shortcuts) in this folder
  2784. showshortcuts    list all aliases (shortcuts) in this folder (you can use the one you like)
  2785. showinvisibles    list all invisible files and folders
  2786. showpointdirs    windows: list also the directories . (current dir) and .. (parent dir)
  2787. showpointdB
  2788. irs    Mac OS: this switch is ignored
  2789. Parameter 2: FileSpec : the path to the folder to list.
  2790. Example: External("TrFile-ListFolder";  "files &folders |Mac HD:")
  2791. See also the functions "TrFile-Save FileSpec Dialog" to get a FileSpec for a folder.
  2792. switches | FileSpecj
  2793. Filesn
  2794. 565,037997236959u
  2795. |("TrFile-FindFolder"
  2796.  "desktop")
  2797. TrFile-FindFolder
  2798. desktop|Ca
  2799. |("TrFile-CreateFile"
  2800.  &"DeleteMe")
  2801. TrFile-CreateFile
  2802. DeleteMe
  2803. |("TrFile-FindFolder"
  2804.  "system")
  2805. TrFile-FindFolder
  2806. system|Fa
  2807. |("TrFile-CreateFile"
  2808.  &"DeleteMe")
  2809. TrFile-CreateFile
  2810. DeleteMe
  2811. |("TrFile-FindFolder"
  2812.  "trash")
  2813. TrFile-FindFolder
  2814. trash|Ia
  2815. |("TrFile-CreateFile"
  2816.  &"DeleteMe")
  2817. TrFile-CreateFile
  2818. DeleteMe
  2819. |("TrFile-FindFolder"
  2820.  "shutdown")
  2821. TrFile-FindFolder
  2822. shutdown|La
  2823. |("TrFile-CreateFile"
  2824.  &"DeleteMe")
  2825. TrFile-CreateFile
  2826. DeleteMe
  2827. |("TrFile-FindFolder"
  2828.  "applemenu")
  2829. TrFile-FindFolder
  2830.     applemenu|
  2831. defaultX
  2832. destinationl
  2833. fileX
  2834. filespec
  2835. filetype1filetype2fi
  2836. folderconstant
  2837. nameX
  2838. prompt
  2839. prompt
  2840. default
  2841. nameX
  2842. searchnamet
  2843. separator
  2844. sourcel
  2845. source
  2846. filespec
  2847. destination
  2848. filespecl
  2849. switchesr
  2850. switches
  2851. filespecr
  2852. switches
  2853. volume
  2854. searchnamet
  2855. volumet
  2856. files
  2857. general
  2858. turns the modification date for the file specified by the FileSpec. The modification date is also displayed in the Finder or Explorer.
  2859. See also the function "TrFile-Get FileSpec Dialog" to get a FileSpec.
  2860. the function "TrFile-Get FileSpec Dialog" to get a FileSpec.
  2861. hvCombination of "TrFile-Get FileSpec Dialog" followed by a "TrFile-GetContents" function. Gets a text file in one go.
  2862. FileSpecj
  2863. Filesn
  2864. 120,09641161193u
  2865. TrFile-Get FileSpec Dialogf
  2866. Presents the user with a standard dialog and displays all files in a directory. A prompt will be displayed to tell the user which file to select. The function returns a FileSpec for the selected file to be used with one of the file manipulation functions.
  2867. Set Field[MyFileName, External(Troi-StandardGetFile, "Please choose a file to import")] returns "HD Mac:Text files:My Letter" if the user selects that particular file.
  2868. If the user cancels an error code of "$$-1" is returned.
  2869. promptj
  2870. Filesn
  2871. 405,648572093644u
  2872. TrFile-GetContentsf
  2873. Search
  2874. } 4) Click Here to start searching
  2875. 2) Type a filename
  2876. volume name
  2877. ABFI>>
  2878. Possible Returned error codes 
  2879. $$-35    = No such volume (Wrong disk name or not mounted).
  2880. $$-43    = File not found.     
  2881. $$-50     = Parameter error.
  2882. $$-120    = Directory not found.
  2883. 3) Set switches
  2884. 1) Select the disk to search 
  2885. See also the functions "TrFile-Save FileSpec Dialog" to get a FileSpec for a folder.
  2886.     O&     Og
  2887. gcSzG
  2888.     A-My"
  2889.  2 ) 
  2890.  "$$"
  2891. |("TrFile-GetContents"
  2892. TrFile-GetContents
  2893. |("TrFile-GetFileSize"
  2894. ) / 1024
  2895. TrFile-GetFileSize
  2896. |("TrFile-GetDataSize"
  2897. TrFile-GetDataSize
  2898. |("TrFile-GetResForkSize"
  2899. TrFile-GetResForkSize
  2900.  & "EXP" & 
  2901. ) & ".TAB"
  2902. F = "Yes"
  2903. |("TrFile-DeleteFile"
  2904. TrFile-DeleteFile
  2905. |("TrFile-CopyFile"
  2906. C & "|" & 
  2907. TrFile-CopyFile
  2908.  <> 0
  2909. odeWarrior Pro 2. In order to do this CodeWarrior Pro 2 must be 
  2910. installed first. 
  2911. If you wish to merge the installations you must install both CodeWarrior 
  2912. Pro 2 and Co
  2913. deWarrior for PalmOS 4 into the same folder. Installing into 
  2914. different folders will not allow the installer to properly merge the 
  2915. installations and may result in a corrupted installation.
  2916. Note that CodeWarrior for PalmOS 4 is based on components from the 
  2917. CodeWarrior Pro 2 release. If you have applied updates or patches to 
  2918. CodeWarrior Pro 2 it will be necessary to reapply those updates after 
  2919. merge installing CodeWarrior for PalmOS.
  2920. CodeWarrior for PalmOS Release 4 installs MWDebug 1.
  2921. Export 
  2922. Cancelh
  2923. Replace
  2924. An Error occured. See the layout for an explantion of errors.G+
  2925. ) = 1    
  2926. support at: support@metrowerks.com
  2927. ===================================
  2928. Alex Harper Metrowerks QA
  2929. files
  2930. folders
  2931. U    Internal:
  2932. Searching....1.2.pdf
  2933. KES:Projecten:Troi FM Plug-In:TEXT:Troi-Text-Plug-in1.0.1 ALL:Troi-Text-Plug-in1.0.1 WWW:Text Plug-in User Guide.pdf
  2934. KES:Projecten:Troi FM Plug-In:TEXT:Troi-Text-Plug-in1.2b2:Text Plug-in User Guide.pdf
  2935. KES:zData Troi:WWW Site:site980429:software:Text Plug-in User Guide1.2.pdf
  2936. KES:Programma's:CodeWarrior Pro 4:CodeWarrior Documentation:PDF:IDE User Guide.pdf
  2937. KES:Trash:Graphic Plug-in User Guide.pdf
  2938. KES:Trash:Number Plug-in User Guide.pdf
  2939. KES:Tr
  2940. ash:User Guide Graph.pdf
  2941. KES:Projecten:Troi FM Plug-In:GRAPH:Troi-Graph-Plug-in1.0:Graphic Plug-in User Guide.pdf
  2942. KES:Desktop Folder:SAVED:USER MANUAL GRAPH PI:User Guide
  2943. KES:Desktop Folder:SAVED:USER MANUAL GRAPH PI:User Guide1.2.pdf
  2944. KES:Desktop Folder:USER MANUAL GRAPH PI:Graphic Plug-in User Guide.pdf
  2945. KES:Desktop Folder:USER MANUAL GRAPH PI:User Guide Graph
  2946. KES:Desktop Folder:SAVED:User Guide Graph
  2947. files
  2948. foldersED:Troi Grabber Plug o Data:
  2949. KES:Desktop Folder:SAVED:Troi Grabb
  2950. ImageImp.fp3
  2951. FMP3FMP3
  2952. Troi-File-Plug-in1.2.1
  2953. XKES:Projecten:Troi Plug-In 981215:Troi Plug-ins:FILE:Troi-File-Plug-in1.2.1:ImageImp.fp3
  2954. Ethernet zone
  2955. McGee
  2956. peter
  2957. Maker Pro 4 directory. If you have installed previous versions
  2958.    of this plug-in, you must remove them.
  2959.    You may want to install other plug-ins before proceeding. Then (re)start FileMaker Pro. The Troi 
  2960.    File Plug-in will display a dialog box, indicating that it is loading and showing the registration 
  2961.    status. You can now open the file "File Example.fp3" to see how to use the plug-in's functions. 
  2962.    There is also a Function overview in this file.
  2963.  UPGRADING FROM TROI FM PLUG-IN
  2964.    Current licenced users of our Troi FM Plug-in 1.0 can upgrade for free to the 3 replacing plug-ins: 
  2965.    Troi Dialog Plug-in 1.2.1, Troi File Plug-in 1.2.1 and Troi Coding Plug-in 1.2. These 3 new plug-ins will
  2966.    recognize the payment data of Troi FM Plug-in 1.0.
  2967.    -For Macintosh: remove the "Troi FM Plug-in" file from the "FileMaker Extensions" folder. Put the 
  2968.    file "Troi File Plug-in" from the folder "MacOS Plug-in" into the "FileMaker Extensions" 
  2969.    folder in the FileMake
  2970.